Skip to content

brunoBrizo/be-template

Repository files navigation

DevSeeker API

Installation

Copy .env.EXAMPLE to .env.dev for development

Install dependencies

$ yarn

Run

$ yarn dev

Run ESLint

$ yarn lint

Build Project

$ yarn build

Test

To run all tests:

$ yarn test

Unit test

To run all unit tests:

$ yarn test:unit

Migrations

All tables can be created by setting DB_SYNCHRONIZE = true in .env.dev, or you can run migrations.

Generating Migrations

To generate a migration you can run the following command:

$ yarn migrations:generate src/migrations/MIGRATION_NAME

Running Migrations

To run all pending migrations:

$ yarn migrations:run

Reverting Migrations

To revert the last applied migration:

$ yarn migrations:revert

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published