- Node (version ref: v14.15.3)
- Docker (version ref: 20.10.8)
- Download the repo
- go for backend directory (
cd backend
) - run
npm install
- go for backend directory (
cd backend
) - run
docker-compose up
for start the express web server and the Postgres container
- Ensure your Postgres container is running
- go for backend directory (
cd backend
) - run
docker-compose exec app npx knex --knexfile src/db/knexfile.ts migrate:latest
to create the tables, seeds and so
- go for backend directory (
cd backend
)
npx knex --migrations-directory ./src/db/migrations migrate:make migration_name -x ts
docker-compose exec app npx knex --knexfile src/db/knexfile.ts migrate:latest