Skip to content

jpcouhe/Piiquante---Node.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

HotTakes

Project 6 of the OC formation | Build an API

API Documentation is available here : API doc

🏗️ Installation

  • Clone this project from Github
  • Make sur you have Node.js installed.

🔍 Frontend

This project was generated with Angular CLI version 13.2.4. You can find the repo here : https://github.com/OpenClassrooms-Student-Center/Web-Developer-P6

  • cd ./FrontEnd
  • npm install
  • Run npm start for a dev server. Navigate to http://localhost:4200/ . The app will automatically reload if you change any of the source files.

🔍 Backend

This project was generated with NodeJs v16.14.0

  • cd ./BackEnd

🚧 In dev mode :

  • npm install
  • npm start
    you will access to more packages (morgan, morganBody)

🚀 In product mode :

  • npm install --only=prod
  • npm run start:prod #

With nodemon the app will automatically reload if you change any of the source file.

After npm is done installing, set any environment variables in a .env file (in the folder BackEnd) , with this key :

# Port Use
PORT= xxx

# MongoDB client
MONGO_SECURE_URI = mongodb+srv://<user>:<password>@cluster0.csny7.mongodb.net/<nameDatabase>?retryWrites=true&w=majority

# Random secret token
JWT_KEY= xxx

🔨 Technology

  • Packages: Multer, JsonWebTokens, uniqueValidator, uuid, helmet, nodemon, dotenv & bcryp

About

Mise en place d'un backend avec Node.js et MongoDb.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published