Skip to content

Fast API with Python with the operation we mostly used for building web apps

Notifications You must be signed in to change notification settings

qisantanu/fastapi_learn

Repository files navigation

FastAPI from Python3

This repository is where I grab the knowledge of a framework for API development only named FastAPI renowned for web development.

Pre-requisites

The following software is required to work with the repository.

Development:

  1. python3
  2. sqlite3

This project currently works with:

Python version FastAPI pip Sqlite3

Setting up

Steps to follow

  • Clone from repository
  • 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.sh or manually:
    • Start Redis: redis-server
    • Start worker: celery -A celery_app worker --loglevel=info
    • Start beat scheduler: celery -A celery_app beat --loglevel=info
  • Access the APIDOCS by opening your application in http://localhost:8000/apidocs

Additional informations

Environment variables

Key Sample Value
WEATHER_API_KEY 23aec9ae09052892422dac0403931879

About

Fast API with Python with the operation we mostly used for building web apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published