This repository contains the class material for the course Modern Web Development with JavaScript.
To download the class material, look over to right hand side of this page and click "Download Zip."
This will download a zip file of the respository contents to your "Downloads" directory.
Then extract the contents of the zip to a directory.
To view the slide deck, navigate to the unzipped directory and open the index.html file in your browser.
The slide deck is built using an open source JavaScript library called reveal.js.
Use the arrow keys to navigate the slide deck. The directional pad on the bottom-right corner of the slides tells you which directions you are able to navigate in.
NOTE: Make sure you use Google Chrome or Mozilla Firefox...Internet Explorer is currently not supported.
Before setting up the web server and database for Labs 2-4, make sure your system has the following programs installed:
NOTE: Instructions assume that you are using a machine running on Windows 7 or 8.
I will add Unix command line instructions at a later date.
-
Open up a new Windows Command Prompt (Start -> Windows Command Processor)
-
Navigate to the MongoDb binary directory:
cd C:\mongodb\bin # This assumes that mongodb is installed in the C: directory
-
Create a directory to store your data:
md data # Creates the \data directory within the C:\mongodb\bin directory cd data # Go into the \data directory md db # Creates another directory called \db within \data cd .. # Goes back to the C:\mongodb\bin directory
-
Type the following command:
mongod --dbpath c:\mongodb\bin\data\db
MongoDB should now be running on your localhost at port 27017
-
Keep this command prompt open and keep MongoDB running!
NOTE: Instructions assume that you are using a machine running on Windows 7 or 8.
I will add Unix command line instructions at a later date.
-
Open up a new Windows Command Prompt (Start -> Windows Command Processor)
-
Navigate to the unzipped application directory -
cd C:\Users\student\Desktop\modern-web-dev-master\labs\labWorkspaceApp
-
Set the HTTP Proxy (if you are behind a firewall):
set HTTP_PROXY=http://gatekeeper.mitre.org:80
-
Type the following command to install Express (a web development framework for Node.js):
npm install -g express
-
Type the following command to install the necessary dependencies for the Node.js web server:
npm install # Make sure you are in the \labWorkspaceApp directory when you run this command
-
Type the following command to run the server:
node app.js # Make sure you are in the \labWorkspaceApp directory when you run this command
-
The application should be running on your localhost at port 3000. Navigate to
http://localhost:3000
in your browser to access the lab workspaces.Always keep this Command Prompt window open!
-
Whenever you are beginning the next lab, make sure to restart the server so that the database is cleared and repopulated with the dummy data.
To restart the server, go the command prompt running the Node.js web-server, and type Ctrl + C.
Then run the command in Step 6 again.
Copyright (C) 2013 Rohit Kalkur, http://www.rovolutionary.com