Skip to content

alexop89056/fastapi-celery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

FastApi application with Celery Broker


______        _    ___  ______ _____           _____      _                 
|  ___|      | |  / _ \ | ___ \_   _|    _    /  __ \    | |                
| |_ __ _ ___| |_/ /_\ \| |_/ / | |    _| |_  | /  \/ ___| | ___ _ __ _   _ 
|  _/ _` / __| __|  _  ||  __/  | |   |_   _| | |    / _ \ |/ _ \ '__| | | |
| || (_| \__ \ |_| | | || |    _| |_    |_|   | \__/\  __/ |  __/ |  | |_| |
\_| \__,_|___/\__\_| |_/\_|    \___/           \____/\___|_|\___|_|   \__, |
                                                                       __/ |
                                                                      |___/ 

Overview 😊

The application includes a logic to get ip address from external api and save it to database.

Technologies used 🔧

  • FastApi
  • Celery
  • RestApi
  • Jwt Authorization
  • Peewe ORM
  • RabbitMQ
  • Swagger Docs
  • MySQL
  • UnitTests
  • Uvicorn (On Server live preview)
  • Nginx (On Server live preview)

Installation 🚀

To install the project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/alexop89056/fastapi-celery.git
  2. Navigate to the project directory:

    cd fastapi-celery
  3. Install dependencies:

    pip install -r app/requirements.txt
    

Usage 📝

  • Start Project with a uvicorn server:

    uvicorn app:app
    

Project Architecture 🔑

  • app: Root folder
    • auth: Jwt tokens logic
    • dependencies: Main dependencies of api routes
    • models: Database and Pydantic models
    • routes: Api Routes
    • tasks: Celery tasks
    • celery_app.py: Celery entrypoint
    • config.py: Main config of app
    • local_config.py: Local config (Something like .env file)
    • requirements.txt: Modules list
  • unit_test.py: Py file to run unit tests

License 📝

This project is licensed under the MIT License - see the main page for the details.

About

FastApi application with Celery Broker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages