$ npm install$ docker-compose up -d#migrations
$ npm run migration:generate
$ npm run migration:run
# development
$ npm start
You should create the Postgres db and configure the .env file with that date.
POSTGRES_USER='some user'
POSTGRES_PASSWORD='some password'
POSTGRES_DB='some db name'
POSTGRES_PORT='some port'
JWT_SECRET='secretKay' ADMIN = 'admin',
BOSS = 'boss',
REGULAR = 'regular',{
"email": "regular545@gmail.com",
"password": "regula54r443254",
"username": "regul45ar54",
"role": "regular",
"bossId": 3
}{
"email": "boss@gmail.com",
"username": "boss",
"password": "boss111",
"role": "boss"
}http://localhost:3000/users/7http://localhost:3000/users/7/change-boss{
"email": "regular545@gmail.com",
"password": "regula54r443254",
"username": "regul45ar54",
"role": "regular",
"bossId": 4
}