This application depends on node.js LTS Version: v6.11.2 , npm, sails.js and gulp Please make sure you have these installed before proceeding forward.
# npm i sails -g
# npm i gulp -g
# npm i
Start the server:
# npm start
Launch the client:
# gulp
The project will be reachable under:
# http://localhost:3000
debug: Environment : development debug: Port : 1337
http://localhost:1337/restaurants/
http://localhost:1337/restaurants/?is_favorite=true
http://localhost:1337/restaurants/<restaurant_id>
http://localhost:1337/reviews/?restaurant_id=<restaurant_id>
http://localhost:1337/reviews/
http://localhost:1337/reviews/<review_id>
http://localhost:1337/reviews/?restaurant_id=<restaurant_id>
http://localhost:1337/reviews/
####### Parameters
{
"restaurant_id": <restaurant_id>,
"name": <reviewer_name>,
"rating": <rating>,
"comments": <comment_text>
}
http://localhost:1337/restaurants/<restaurant_id>/?is_favorite=true
http://localhost:1337/restaurants/<restaurant_id>/?is_favorite=false
http://localhost:1337/reviews/<review_id>
####### Parameters
{
"name": <reviewer_name>,
"rating": <rating>,
"comments": <comment_text>
}
http://localhost:1337/reviews/<review_id>
Local server
- Node.js
- Sails.js
Build
- Gulp.js
- Brandy Lee Camacho - Technical Project Manager
- David Harris - Web Services Lead
- Omar Albeik - Frontend engineer
- Ugo Briasco - Udacity student
If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to our Waffle Dashboard. Even better you can submit a Pull Request with a fix :)