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