The Cook Book is a Full Stack Application created using Angular 7 (Front End Framework), Sails.js (Node.js Framework) and MongoDB (NoSQL Database).
The Sails.js framework also rests within this folder structure in backend
folder at root location.
git clone
the application locally.- run
npm install
insideTheCookBook
folder and then insidebackend/CookBookAPI
folder. - To run the Sails.js application (API), run
nodemon app.js
from root location ofCookBookAPI
folder - To run Angular 7 application, run
npm run start-proxy
at root location ofTheCookBook
folder. - Please make sure MongoDB is already running locally on port 27017. The Sails.js application is set to create collections on MongoDB directly but the connection should be set first.
- GET
/loadrecipes
- To get the list of all recipes. - POST
/create
- To create a new recipe and add to the database - PUT
/update/:recipe_name
- To update an existing recipe
This project was generated with Angular CLI version 7.3.9.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.