Feature flags Nest MVP.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
cd client
npm ci
npm run dev
cd client
npm ci
npm run build
To run Postgres in docker execute:
docker run --name postgres_container -e POSTGRES_PASSWORD=<my-password> -d -p 5432:5432 postgres
Then add your credentials to src/modules/feature-flags/data-source.ts
Generate migration with current entity models changes
npm run typeorm -- migration:generate -d ./src/modules/feature-flags/data-source.ts ./src/modules/feature-flags/migrations/<YourMigrationName>
Run migrations:
npm run typeorm -- migration:run -d ./src/modules/feature-flags/data-source.ts