Skip to content

Wong-Selo/lms-backend

Repository files navigation

Contents

Tech Stack

  1. node js express
  2. db-migrate
  3. postgresql
  4. grunt

INITIAL STEP

  1. Clone
  2. Copy .env.example -> .env
  3. Modify .env
  4. Intall node_modules
$ docker build images/node --tag lms_node
$ docker run --rm -w /home/node/app -v "$(pwd)/api:/home/node/app" lms_node npm i
  1. RUN docker compose (using -d to run in the background)
$ docker-compose up
  1. Check with open in the browser http://host:port

DB Migration

  1. Create DB migration
$ docker exec -it lms_api db-migrate create <migration-name>
  1. Then edit api/migrations files
  2. Migrate database
$ docker exec -it lms_api db-migrate up

for reference follow this one https://www.npmjs.com/package/db-migrate https://db-migrate.readthedocs.io/en/latest/Getting%20Started/installation/

Swagger Docs

http://host:port/api-docs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages