Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 985 Bytes

README.md

File metadata and controls

54 lines (37 loc) · 985 Bytes

Colony Backend APIs

Requirements

  1. NodeJS 14+
  2. Redis
  3. PostgreSQP

Setup

# clone repository
git clone <url>

# copy .env.example and adjust environment variables
cp .env.example .env

# Install Dependencies
npm install

# Build
npm run build

# start
npm run start

# To run in dev mode and hot reload
npm run start:dev

Run in Docker

# To build docker image
docker build -t colony-backend

# To run docker container
docker run -it --rm -p <port>:<port> --env-file $PWD/.env colony-backend

APIs

  TEST URL          GET   /api/app
  SEED VALUES       GET   /api/seed
  GET AuthToken     GET   /api/token

  LOGIN             POST  /api/auth/#

  Complete API Documentation https://documenter.getpostman.com/view/5721584/TW71jktC
  POSTMAN Import Link: https://www.getpostman.com/collections/9262d0fde52b759b3346
  SWAGGER COLLECTION https://colony.invotyx.gq/api/docs/