toloa-api

rest api service for toloa platform

Stars
3

How to Run DB

Prerequisite

  • Docker
  • Ensure Docker Daemon is Running

Instructions

  1. Run PostgreSQL Docker Container
$ docker run --name pg -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d postgres
  1. Connect to Running PosgreSQL Container
$ docker exec -it pg bash
  1. You should be inside container cli. Run the following commands.
root@SOME_RANDOM_STRING# psql -U postgres
postgres# CREATE DATABASE toloa;
  1. Duplicate & Rename 'example.ormconfig.json' to 'ormconfig.json' and fill in values.
  2. Run NestJS Application.