How to Set Up for AngularJS 1.5
Setting up for our AngularJS 1.5 course will take a little time. Please follow these instructions carefully.
- Windows 7 or later or Mac OSX 10.5 or later
- Minimum of 3 GB RAM
- 10 GB in the hard disk
The latest version of Google Chrome of Firefox.
- Notepad++ (Free download)
- JetBrains WebStorm (Free 30-day trial)
- Eclipse - (Download with AngularJS Eclipse Plugin)
- Atom text editor - (Download)
The following archives will be shipped with the courseware.
Upon extracting the archive an AngularClass directory will be created containing the following executables in the AngularClass/bin directory
- node (Node.js version v0.12.7)
- mongo (version 3.0.7)
- mongod (version 3.0.7)
- mongoimport (version 3.0.7)
In addition, the AngularClass/node_modules directory contains Node.js packages and plugins used in the class.
Starting the class environment (on the day of the class)
The environment is setup by running an instance of a Node.js web server and a MongoDB database instance from the command line or terminal. Everything you need is contained in the AngularClass directory provided Closing the terminal will end all sessions and stop all server instances running.
- Unpack the archive AngularClassWin(64/32).zip or AngularClassMac.zip to a directory on the student computer’s hard drive.
- Open a command prompt or terminal window in your newly created AngularClass directory.
- Set up your PATH:
- Windows Users: Type/enter bin\set-path, which should set up your PATH variable for this command prompt.
- Mac users: Type source bin/set-path.
- With your PATH correctly set, enter start-server, which will kick off a Node.js-based web server on port 8000.
mongo-start, which will kick off an instance of the MongoDB database.
mongo-load- class, which will load our class sample data into the Mongo database.
start-rest, which will kick off a RESTful interface to the Mongo database on port 27017.
- Navigate to http://localhost:8000/Installed.html.
- You should see a page indicating that the web server and the RESTful server are both running.
- You should be ready to begin the class.