Skip to content

nadaissa/IssaNada_6_08032022_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project n°6 - Hot Takes (Piiquante!) - OpenClassrooms courses

🔒 Build a secure API for a food site ♨️ (front-end already provided)

Project targets

📤 Use CRUD operation in a secure manner ✅

📑 Implement a logical data model ✅

🔑 Secure data storing ✅

Expected operations

👥 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 ✅

User guide: 📋

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]

From withing the back-end folder provided

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

Project dependencies:

bcrypt, dotenv, email-validator, express, fs, helmet, jsonwebtoken,mongoose, mongoose-unique-validator, multer, password-validator

After cloning the front-end repo (Web-Developper-P6)

1- Run npm install

2- Install Angular (cli version 13.2.4)

3- Follow these front-end readme file instructions:

Development server

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.

Code scaffolding

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.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

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.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published