______ _ ___ ______ _____ _____ _
| ___| | | / _ \ | ___ \_ _| _ / __ \ | |
| |_ __ _ ___| |_/ /_\ \| |_/ / | | _| |_ | / \/ ___| | ___ _ __ _ _
| _/ _` / __| __| _ || __/ | | |_ _| | | / _ \ |/ _ \ '__| | | |
| || (_| \__ \ |_| | | || | _| |_ |_| | \__/\ __/ | __/ | | |_| |
\_| \__,_|___/\__\_| |_/\_| \___/ \____/\___|_|\___|_| \__, |
__/ |
|___/
The application includes a logic to get ip address from external api and save it to database.
- FastApi
- Celery
- RestApi
- Jwt Authorization
- Peewe ORM
- RabbitMQ
- Swagger Docs
- MySQL
- UnitTests
- Uvicorn (On Server live preview)
- Nginx (On Server live preview)
To install the project, follow these steps:
-
Clone the repository:
git clone https://github.com/alexop89056/fastapi-celery.git
-
Navigate to the project directory:
cd fastapi-celery
-
Install dependencies:
pip install -r app/requirements.txt
-
Start Project with a uvicorn server:
uvicorn app:app
- 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
This project is licensed under the MIT License - see the main page for the details.