The labs to accompany the 3 - 5 day AngularJS classes
- Make sure MongoDB and NodeJS/npm are installed.
- cd to the setup directory for your OS (Unix or Windows)
cd setup/Windows or
cd setup/Unix - Run the installLab script
installLab.ps1 # On Windows or
installLab.bash # On Mac/Linux
- Start Mongo daemon `mongod
- Start the web server `node northwindServer.js
- Point your browser to the address that it tells you to, usually localhost:8000. `http://localhost:8000
You can run a particular version of the site under Solutions and Starters by setting the NODE_SOLUTIONDIR environment variable before you start the web server.
set NODE_SOLUTIONDIR="Lab 99 Final Solution/Solution"
node northwindServer.js
NODE_SOLUTIONDIR="Lab 99 Final Solution/Solution"
node northwindServer.js
This will cause Node/Express to return the files under that directory instead of the ones under /app.
If you have gulp, just type gulp. It'll start the server and report the port. If not,