Skip to content

Nkbtemmy/awesomity-backend-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awesomity-backend-challenge

Technologies used

  • Node js
  • Express server
  • Mocha and Chai
  • Mongo/Mongoose datatabse

Start Up

  • Clone the repository
  • Install packages by running npm install

Setting up environoment variables

  • open cmd type in powershell if you are using windows pc
  • copy and paste this commands $env:NODE_ENV="production" , $env:NODE_ENV="test", $env:NODE_ENV="development"

Dotenv setup

  • Create .env in project root directory
  • Take a look at the .env.example file which is in the project root directory to have a clue on environment variables that are being used in this project
  • Copy all keys from the .env.example file to .env file and add values to corresponding keys. These can be obtained from the project administrator

Testing Functioning routes

Project scripty

    • Run npm run dev to start development server
    • Run npm run start to start deployment server
    • Run npm run test to test

checking manager Logs

  • Navigate to project folder src and enter in footprint you will find in file called access.log open it you will see all manager logs

Procuduction Link

production link

API Documentantion

Swagger Documentation Link