A progressive Node.js framework for building efficient and scalable server-side applications.
$ yarn install
# development
$ yarn run start
# development using Docker + local MongoDB
$ docker-compose -f docker-compose.dev.yaml up --build
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov
Generate a new migration file with a timestamp and your specified name.
$ MONGODB_URI='value' yarn run migrate create --folder migrations --name <migration-name>.mjs
Example:
$ MONGODB_URI='value' yarn run migrate create --folder migrations --name currencies-seed-collection.mjs
You need to specify --folder migrations
only for creating the first migration.
Apply all pending migrations to update the database schema.
$ MONGODB_URI='value' yarn run migrate up
Revert the last applied migration.
$ MONGODB_URI='value' yarn run migrate down
Show all currently pending migrations.
$ MONGODB_URI='value' yarn run migrate pending
Show all executed migrations.
$ MONGODB_URI='value' yarn run migrate executed
For the rest possible migration commands visit official Umzug documentation.