- Given JWT-Token for login (not signup)
- NodeMailer for signUp - Confirmation by email (not required)
- NodeMailer for forgotten Password - sending an email containing a token and giving access to the front password reset
- NodeMailer for UpdateEmail, UpdatePassword (with authentication)
- Model for User (auth : email & encrypted password Bcrypt)
- Model with modular attributes for the UserProfile
- JOI validation for User Model & UserProfile Model
- Image Managament (multer) for UserProfile avatar (create, update)
- Messages for front ok (error + message) for Model User (CRUD)
-
git clone https://github.com/amjoda-2021/HomeCooker-back.git
-
npm install
-
npm run dev
-
Have to add config vars to your .env :
- BASE_URL = ""
- DB = "" => MangoDB url with auth (you have to create MangoDB account to have a valid URL for database connection
- PATH = "SENGRID_API_KEY" NodeMailer
- SERVICE= 'SendGrid' for NodeMailer with Sendgrid
- TOKEN_KEY= "" String for JWT-Token signature
- Online app API: https://home-cooker-back.herokuapp.com/
- request URL : https://home-cooker-back.herokuapp.com/api/
for Auth request :