- Run postgres docker container:
docker run --name docker-postgres -p 5432:5432 -e POSTGRES_PASSWORD=postgres -d postgres
-
Manually create a new database
test-db
-
Run generation SQL migration command:
npm run db:generate
- Run database migration script:
npm run db:migrate