Skip to content

Name-Later-Team/api-gateway

Repository files navigation

API GATEWAY GUIDE

Installation

  1. Create .npmrc file at root folder
@huyleminh:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=<add your github token here>
  1. Create .env file at root folder
  • Copy content from .env.template
  • Modify variables:
    • If you catch this # do not modify this variable, so please keep its value
  1. Intall packages: npm install

Run

  1. Run on your computer
  • Start: npm start
  • Start in watch mode: npm run start:dev
  1. Run with docker
  • Create .env.production file at root folder
  • Copy content from .env
  • Create docker network:
docker create network local_network
  • Start:
docker compose up -d