-
node.js v16.16.0
-
PostgreSQL v14.4
docker run
--name myPostgresDb
-p 5455:5432
-e POSTGRES_USER=postgresUser
-e POSTGRES_PASSWORD=postgresPW
-e POSTGRES_DB=postgresDB
-d
postgres
npm i
npm run migrate up
npm run seed
npm run test
(don't forget to seed the data before)
npm run dev
# creates a migration with the name text
npm run migrate -- create --name text.sql
npm run migrate down
For more information check here.