POST /submit is working properly. GET /vehicle.json is working properly. GET / is working properly. A TA (I forgot to ask her name) of COMP 20 and Philip Wang helped me. So far I have spend approximately 13 hours on this assignment.
Cross-Origin is allowed for POST "/submit". Sends back the JSON as required. No error in console.
A barebones Node.js app using Express 4.
This application supports the Getting Started with Node on Heroku article - check it out.
Make sure you have Node.js and the Heroku Toolbelt installed.
$ git clone git@github.com:heroku/node-js-getting-started.git # or clone your own fork
$ cd node-js-getting-started
$ npm install
$ npm startYour app should now be running on localhost:5000.
$ heroku create
$ git push heroku master
$ heroku open
or
For more information about using Node.js on Heroku, see these Dev Center articles:
