Skip to content

yhobby/aviata_task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aviata task

To run the application follow these steps

  1. Clone repo to your local laptop or PC
  2. Run the command in root folder of repo sudo docker-compose up --build
  3. Wait until will be ready all services and midnight update will run (execute every 5 minutes) to fill the database
  4. Go to web server http://0.0.0.0:8000/

Notes

All the libraries & tools were used for the first time (Sanic, sanic-jinja2, redis, aioredis, Celery).

All services were launched by analogy with microservice architecture in docker containers (3 container [web, db, worker]).

  • Sanic - web server
  • sanic-jinja2 - for render data to html page
  • Celery - to run scheduled tasks and periodic tasks
  • DB - redis to interact with Celery & aioredis to interact with Sanic