This app will display recipes ,also the information of the user who added th recipes.Users can add comments on the recipes.
Install dependencies:
- Git clone https://github.com/MayuriR29/project-food-recipes
- Run npm install to install the required dependencies.
- npm install
- npm install express
- git init
- gitignore node modules
- npm install jest supertest
- update package.json add scripts:"start": "node server.js"
- npm install mongoose
- npm install --save-dev jest (to add in devDependencies)
- npm install -D nodemon
- npm install body-parser
- npm install mongodb-memory-server --save-dev
- Create heroku application:
- heroku create
- To generate heroku api key, in your shell terminal, run
- heroku auth:token
- authentication
- npm install express-jwt
- updated post during authentication
- npm install --save mongoose-unique-validator
- npm install passport
- npm install passport-jwt
- pm install swagger-ui-express
Run npm start to start the app, or npm run start:dev for automatic reload of server upon changes in the files.
Run npm run test for running the tests a single time, or npm run test:watch for running the tests every time a change is made.