You dont *need* npm, bower, unit testing, karma, grunt, an ide, node, rest,
databases, etc. But they all work together to make life easier and are
definitely worth checking out.

Angular is a client side library. All you need to do is download the min.js
files, as was stated, import it into your html, and your off. I would
suggest looking at the site Plunker (http://plnkr.co/). This is a site
where you can setup simple javascript tests, and view them. You will be
able to see on the left *all* of the files in a given project, and view the
results. There are lots of angular projects there, and you can easily play
with a working angular setup by just clicking 'edit' and then from the
'new' dropdown selecting angular as a template. This is a good place to
experiment, as you dont need to setup the environment (it creates a html
and js file for you, and serves them from a fileserver - thats the whole
environment)

best


On 10 July 2014 09:36, Chris <[email protected]> wrote:

> 'You don't need to run your stuff in a node.js server, but you do need
> node and npm to get bower to run.' - but surely this is a massive barrier
> for people using angular - the vast majority of even medium skilled web
> developers use 3rd party hosting with no node support?
>
> This might be a totally naïve / stupid question (please tell me if it
> is!), but why do there seem to be no tutorials which start at the level of
> "All you need is <script src="//ajax.googleapis.com/
> ajax/libs/angularjs/1.2.19/angular.min.js"></script> to get started; now
> let's learn the language, and later on let's introduce tools which, when
> you're experienced, make you're life easier, like bower, karma unit testing
> etc etc..." At a rough guess, the vast majority of (part time) web
> developers have never even heard of unit testing. I only heard of them for
> the first time ever earlier this year, and I'd never have considered using
> them for any website code. Every tutorial which seems to come up in google
> *expects* you to know what bower is (and how to use it) - I'd never heard
> of it before yesterday!
>
> Chris
>
>
> On Thursday, 10 July 2014 06:27:31 UTC+1, Eric Eslinger wrote:
>
>> While you can serve up the angular files for the tutorial from anything,
>> the tutorial (and most angular tools) assume you're using Bower for the
>> actual libraries. The tutorial also uses NPM to do some other stuff, but I
>> think you wouldn't need NPM if you're running off of your own web stack
>> (although it would make it difficult to run protractor and karma).
>>
>> So at the very least, you'll need to run bower, which requires node to be
>> installed, as it is a node app. You don't need to run your stuff in a
>> node.js server, but you do need node and npm to get bower to run.
>>
>> hth
>>
>> e
>>
>>
>> On Wed, Jul 9, 2014 at 5:40 PM, Chris <[email protected]> wrote:
>>
>>> I thought I should try and teach myself AngularJS.  I've got a few
>>> websites that could probably do with updating, so thought I could try and
>>> kill two birds with one stone by using one of these new-fangled frameworks!
>>> I know that my current hosts don't support Node.js, so all I want is to use
>>> Angular on a standard LAMP stack (although for dev purposes, I'm running
>>> XAMPP on Windows).
>>>
>>> The AngularJS tutorial (https://docs.angularjs.org/tutorial) says `If
>>> you want to run the preconfigured local web-server and the test tools then
>>> you will also need Node.js v0.10.27+.` - since I don't want to run the
>>> preconfigured web-server, or use their test tools, I skipped this step.
>>> I've been given the impression that Angular does not need Node.js to run at
>>> all - is this correct? I checked out the angular-phonecat files to
>>> `C:\Users\chris\htdocs\angularjs_tutorial\angular-phonecat\app` and set
>>> up a subdomain `http://angularjs.localhost`, mapped to
>>> `C:\Users\chris\htdocs\angularjs_tutorial\angular-phonecat`, so that '
>>> http://angularjs.localhost/app/index.html' should work (i.e. matching
>>> the tutorial's URL).  I then, as directed, ran `git checkout -f step-0` (
>>> https://docs.angularjs.org/tutorial/step_00); the source code for
>>> `index.html` is as at http://plnkr.co/edit/qRD76u8twFpqMmcf1D1O?p=
>>> catalogue
>>>
>>> When I go to that page, I see
>>>
>>>     Nothing here {{'yet' + '!'}}
>>>
>>> instead of
>>>
>>>     Nothing here yet!
>>>
>>> I note that there *isn't* a `bower_components` directory in the current
>>> directory
>>>     - is this something handled by the preconfigured Node.js server;
>>>     - or is it a bug in the tutorial? (is this something to do with
>>> angular.seed? If so, why doesn't the tutorial mention it rather than making
>>> us spend hours googling to find out about it...?!)
>>>
>>> Either way, what else do I need to do / what's the best way to proceed?
>>> The fact that I already had the Windows git client should indicate (I
>>> hope!) I'm not an utter technophobic luddite (most of my job is
>>> programming, but I'm a chemistry graduate originally) but it does slightly
>>> frustrate me that developers put barriers in place to people who aren't
>>> total experts (although I do recognise that, although developers can't
>>> support all possible combinations, there is often a fine line between this
>>> and supporting combinations of dependencies that are most common...)
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "AngularJS" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>>
>>> Visit this group at http://groups.google.com/group/angular.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Tony Polinelli

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to