This repository is where I grab the knowledge of a framework for API development only named FastAPI renowned for web development.
The following software is required to work with the repository.
Development:
- python3
- sqlite3
This project currently works with:
It is recommended to use a virtual environment to isolate dependencies:
# Create virtual environment
python3 -m venv venv
# Activate virtual environment
source venv/bin/activate
# Install dependencies
pip install -r requirements.txtpip install -r requirements.txt- Clone from repository
- Create and activate virtual environment (Linux) or skip (Windows)
- Run bundler
pip install -r requirements.txt - Database migration
alembic upgrade head - Run the application server:
uvicorn main:app --reload --log-config=log_conf.yml - Start Celery worker:
./start_celery.shor manually:- Start Redis:
redis-server - Start worker:
celery -A celery_app worker --loglevel=info - Start beat scheduler:
celery -A celery_app beat --loglevel=info
- Start Redis:
- Access the APIDOCS by opening your application in http://localhost:8000/apidocs
| Key | Sample Value |
|---|---|
| WEATHER_API_KEY | 23aec9ae09052892422dac0403931879 |