Skip to content

TRAVELAGO/TRAVELAGO-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e5dc355 · May 26, 2024
Feb 29, 2024
Mar 20, 2024
May 26, 2024
Feb 29, 2024
Apr 2, 2024
May 1, 2024
Feb 29, 2024
Mar 29, 2024
Feb 29, 2024
Feb 29, 2024
Apr 2, 2024
Apr 2, 2024
Feb 29, 2024
May 8, 2024
May 1, 2024
Apr 17, 2024
May 1, 2024
Mar 3, 2024
May 4, 2024
Feb 29, 2024
Apr 17, 2024
May 4, 2024

Repository files navigation

TRAVELAGO-API

Installation

# install package
$ yarn

# create environment file and edit
$ cp .env.example .env
  • create database travelago in mysql

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Migrations

# run
yarn run migration:run

# revert
yarn run migration:revert

# generate
yarn run migration:generate src/database/migrations/<migration-name>

# create
yarn run migration:create src/database/migrations/<migration-name> 

Run Docker

# build image & run container
$ docker compose up

# rebuild image & run container
$ docker compose up --build

# stop container
$ docker compose stop

# start exited container
$ docker compose start

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov