/nestjs-setup

This repo shows off how to do nestjs migrations using env variables

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Nestjs migrations

To run this repo, create a .env file for the docker compose file and for the nestjs backend. I have added the .example postfix on my already existing env files.

To run the database container:

docker compose up --build --detach

Go to the migrations-backend directory and run:

npm run start:dev

The migrations scripts are inside the package.json file inside the migrations-backend directory