Welcome to the Betafore Task Backend

Backend Live Link: https://betafore-task-backend.vercel.app

Run this repository on your local machine

Please follow the below instructions to run this repository on your local machine:

  1. Clone this entire repository

    git clone https://github.com/Khairul38/betafore-task-backend
  2. Go to the cloned project directory

    cd betafore-task-backend
    
  3. Make environment file with the following system

    # Make .env file accordingly :
    NODE_ENV=development
    PORT=5000
    
    DATABASE_URL="mongodb+srv://<username>:<password>@cluster0.mnkod.mongodb.net/?retryWrites=true&w=majority"
    
    STRIPE_SECRET=""
    
    BCRYPT_SALT_ROUNDS=12
    JWT_SECRET='jwt-secret'
    JWT_EXPIRES_IN=1d
    JWT_REFRESH_SECRET='jwt-refresh-secret'
    JWT_REFRESH_EXPIRES_IN=365d
  4. Install dependencies

    yarn
    
    # or
    
    npm i
  5. Run server

    # development mode
    yarn dev
    #or
    npm run dev
    
    # build mode
    yarn build
    #or
    npm run build
    
    # production mode
    yarn start
    #or
    npm run start

Application Routes:

Auth

User

Payment

THANKS