Skip to content

danieljausovec/tasks-mgmt

Repository files navigation

Installation

# build docker image
$ docker build .

# start app (to get container id)
$ docker-compose up

# connect to container
$ docker exec -it {container-id} sh

# OPTIONAL: stops the execution of a script if a command or pipeline has an error
$ set +e

# install packages
$ npm install

# run migrations
$ npm run migration:run

Running the app

# start app
$ docker-compose up

# build image and run app at the same time
$ docker-compose up --build

How to generate and run migrations

# connect to container
$ docker exec -it {container-id} sh

# OPTIONAL: stops the execution of a script if a command or pipeline has an error
$ set +e

# generate migration
$ npm run migration:generate --name={task-name}

# run migration
$ npm run migration:run

How to run tests

# connect to container
$ docker exec -it {container-id} sh

# OPTIONAL: stops the execution of a script if a command or pipeline has an error
$ set +e

# run tests
npm run test

Swagger

http://localhost:3000/api

About

Task Management

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published