|
|
|
# Task Me Api
|
|
|
|
|
|
|
|
Version: 2.0 Beta
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### Requires
|
|
|
|
|
|
|
|
The following software must be installed on the system to run the project
|
|
|
|
|
|
|
|
- Docker 20.10.2 +
|
|
|
|
- Docker-compose 1.28.0 +
|
|
|
|
- Node.js 14.0.0 +
|
|
|
|
- npm 8.0.0 +
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### Setting project
|
|
|
|
|
|
|
|
Create .env file from .env.example
|
|
|
|
|
|
|
|
`cp .env .env.example`
|
|
|
|
|
|
|
|
Change configuration params
|
|
|
|
|
|
|
|
`nano .env`
|
|
|
|
|
|
|
|
Install dependencies
|
|
|
|
|
|
|
|
`npm install`
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
### Start project local
|
|
|
|
|
|
|
|
Build `npm run start`
|
|
|
|
|
|
|
|
Start `docker-compose up`
|
|
|
|
|
|
|
|
### Run project stage/dev
|
|
|
|
|
|
|
|
Build
|
|
|
|
`npm run build`
|
|
|
|
|
|
|
|
Start
|
|
|
|
`docker-compose -f docker-compose.stage up -d`
|
|
|
|
|
|
|
|
Restart
|
|
|
|
`docker-compose restart`
|
|
|
|
|
|
|
|
Stop
|
|
|
|
`docker-compose stop`
|