sarang301098 / AMS-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Peerbits Backend

Introduction

[TODO]

Configurations

  • Create .env file in the root of repository such that it contains required env variables. Sample of this file is provided in repo named .env.example.

  • Update .env file with suitable configurations

    # CHROMIUM
    PUPPETEER_EXECUTABLE_PATH='/usr/bin/chromium-browser'
  • To create initial super user in migration, provide below configuration in .env file.

NOTE: while using docker to run the Backend

  • Edit the docker-compose.yml file. (if required)

Setup

  • Run the following command to set-up postgres and run migrations:
  make set-up-postgres
  • Start dependencies:
  make start-dependencies
  • Start Backend container:
  make start-backend

Deployment

  1. Take latest pull

    git pull
  2. Install dependency

    npm install
  3. Update version

    npm run version
  4. Generate build

    npm run build

About


Languages

Language:EJS 74.8%Language:TypeScript 22.2%Language:JavaScript 2.4%Language:Shell 0.6%