How to start: docker-compose up --build
load data via python script
- python - (py2.x/3.x)
- Require to install pip package "requests" pip install requests
- execute data load script python src/dataGenerator/data_gen.py
load data via API
- invoke post API
http://localhost:6000/generate/ticket?
with params req
invoke APIs - open API in postman
- import "src/postman_api_docs/ticket_apis.postman_collection.json" file in postman
- will be able to test all the APIs
Authentication and Authorization
- Both are provided only to API "/getalldocs"
- user list and details are specified in file
src/app.js
variable named "users"
Route files
- Route files is under "src/routes/"
model files
- model files is found under "src/model/"
db operarations
- DB ops file is under "src/db"
swagger documentation
- API documentation YAML file stored under "src/swagger/" folder
Ticket schema
- schema strutures are stored in "src/schema/" folder
Docker file of mongoBD
- path "/arowana/mongoDb/Dockerfile"
Docker file of backend
- path "/arowana/Dockerfile"
Docker compose file
- path "arowana/docker-compose.yml"
CMD "docker-compose up" will invoke "docker-compose" file which uses the docker file of mongodb and backend, to make those service up
Things to know about Docker
startes every service docker-compose up
demon mode docker-compose up -d
stop/remove docker-compose down
stop docker-compose stop
start docker-compose start
to create number of service docker-compose up --scale =number
eg: docker-compose up --scale backend=5