- Node 16.10.0
- Docker
-
The injection script in mongodb doesn't work, i.e. I don't have any indexes created.
-
Use the autocannon to perform the load test..
-
To change your user to adm, follow these steps:
docker exec -it mongo_db sh use vendas db.authenticates.update({ associeted_user : <YOUR_ID>}, { access_level : 1 })`
❓ -> Service is Optional
◻️ -> Service not started
☑️ -> Service Started
How to run project using docker ? That command build the project to js and image to docker, then trigger the command to compose all depency from project, run
start:docker
.☑️ LoadBalance:Nginx
☑️ MemoryCache:Reddis
☑️ DiskMemory:Mongo
Finally, Access endpoint using : http://localhost:8080, with port 8080.
For using project how to developer, need compose depency of project using docker: MongoDB, disk in database, only. And Reddis optional. Using command
npm run docker:build
andnpm run docker:compose
. Then, run commandrpm run start:dev
.◻️ LoadBalance:Nginx
❓ MemoryCache:Reddis
☑️ DiskMemory:Mongo
Finaly, access endpoint using http://localhost:3000, with port 3000.
SYSTEM_ADDRESS='http://localhost'
MONGO_URI='mongodb://localhost:27017/vendas'
REDIS_URL='redis://127.0.0.1:6379'
PORT=3000
MONGO_DATABASE=vendas
MAIL_API_KEY=123
PW_DEFAULT=123
JWT_PW_DEFAULT=321
JWT_EXPIRE_DEFAULT=2h
EMAIL_INTERNAL=dev@dev