Skip to content

gorgeousvlad/feature-flags-mvp

Repository files navigation

Description

Feature flags Nest MVP.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Client

Dev

cd client

npm ci

npm run dev

Build

cd client

npm ci

npm run build

DB

Local launch

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

Migrations

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

About

feature-flags-mvp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published