🔒 Build a secure API for a food site ♨️ (front-end already provided)
📤 Use CRUD operation in a secure manner ✅
📑 Implement a logical data model ✅
🔑 Secure data storing ✅
👥 Create a user ✅
🔓 Login with user ID ✅
✏️ Create a Sauce ✅
📝 Modify a Sauce (by creator 🔏) ✅
❌ Delete a Sauce (by creator🔏) ✅
👍👎 Like OR dislike a Sauce ✅
Install node js (16.10.0 or 12.20.2 or 14.15.5 ) [to be compatible with the frontend angular cli version 13.2.4]
1- Inside the main folder create an "images" folder
2- Inside the main folder create an ".env" file and define the environnement variables:
- PORT= ""
- DB_USERNAME = "your database username"
- DB_PASSWORD = "your database password"
- DB_NAME = "your database name"
- DB_CLUSTER = "your database cluster"
- SECRET_TOKEN = "your database password generated secret token"
3- Run npm install
4- Run node server
or nodemon server
bcrypt, dotenv, email-validator, express, fs, helmet, jsonwebtoken,mongoose, mongoose-unique-validator, multer, password-validator
1- Run npm install
2- Install Angular (cli version 13.2.4)
3- Follow these front-end readme file instructions:
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.