- Paste the following into your terminal -
git clone git@github.com:nax3t/ajax-jquery-tutorial.git
- If that gives you an error then you need to setup SSH or use the HTTPS link instead:
git clone https://github.com/nax3t/ajax-jquery-tutorial.git
(this requires use of your github credentials, the password will be hidden while typing)
- If that gives you an error then you need to setup SSH or use the HTTPS link instead:
- Now
cd
intoajax-jquery-tutorial
and runnpm install
- Start your mongo daemon
mongod
in a separate terminal tab - Install
nodemon
globally (if you don't already have it installed) withnpm i -g nodemon
- Run your application in its own terminal tab with
nodemon
- Navigate to
localhost:3000
in your browser
*Note: If you're working from c9 then see below:
- Change the following lines at the bottom of app.js:
app.listen(process.env.PORT, process.env.IP, function(){
console.log("The server has started!");
});
- Now run your server with
node app.js
ornodemon
and view the app from the Preview tab in your workspace