ajax-jquery-tutorial
ajax-jquery-tutorial copied to clipboard
Learn AJAX with jQuery
Setup Instructions
- Paste the following into your terminal -
git clone [email protected]: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
cdintoajax-jquery-tutorialand runnpm install - Start your mongo daemon
mongodin a separate terminal tab - Install
nodemonglobally (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:3000in 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.jsornodemonand view the app from the Preview tab in your workspace