Skip to content

tirthPatel177/mooncase-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mooncase-Apis


Requirements

  • Install nvm(Node version manager) by using command
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
  • Installing Nodejs
    nvm install 16.13.1
  • NPM version 6.14.4 or higher. See here for install instructions.
  • Postman for API Testing. See here for downloading postman.
  • Mongo DB for the database. See here for downloading.

Installation

  • install all modules

    npm install --save
    yarn

start application

  • If you want to start application

    npm start
    yarn start

API Endpoints

Swagger documentation

.ENV

  • Follow this .env for development purpose
    #Application info
    APPLICATION_PORT = 8000
    
    #Database info
    DB_NAME=
    DB_USER=
    DB_PASSWORD=
    DB_SERVER=
    DB_PORT=
    

Error Codes

  • 500 - internal server error occurred, please try again
  • 400 - invalid arguments, please try again
  • 404 - data not found, please try again
  • 401 - unauthorized request, please check again
  • 403 - forbidden request, please check login credentials
  • 409 - conflict happened, we do not allow duplicate entries, please try again.
  • 200 - successful request

Contract deployed:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published