Giter VIP home page Giter VIP logo

fastapi-project's Introduction

#FastAPI pet project

Goals:

  • to try new framework FastAPI and to implement basic CRUD operations; ✔️
  • to try TortoiseORM and Aerich as a database migrations tool; ✔️
  • to try using Celery + Redis with FastAPI and to implement all types of relations; ✔️
  • to work with files: save files to AWS S3 bucket; ✔️
  • to cover endpoints with tests using pytest; ✔️
  • to implement simple chat using MongoDB and websockets; ✔️
  • to implement caching queries with Redis; ✔️
  • to integrate black, flake8 formatting on pre-commit. ✔️

ENVIRONMENT VARIABLES:

Postgres Configs:

  • DB_USER
  • DB_PASS
  • DB_HOST
  • DB_NAME

JWT Auth Configs:

  • JWT_SECRET
  • ACCESS_TOKEN_EXP_MINUTES
  • REFRESH_TOKEN_EXP_HOURS

Email Configs:

  • EMAIL_HOST_USER
  • EMAIL_HOST_PASSWORD

AWS S3 Configs:

  • AWS_ACCESS_KEY
  • AWS_SECRET_ACCESS_KEY
  • AWS_REGION
  • S3_BUCKET

Celery Redis Broker:

  • CELERY_BROKER_URL

Redis Cache:

  • REDIS_CACHE_URL

MongoDB Configs:

  • MONGODB_URL

Start project

python run.py

Testing

Run tests:

run_tests.sh

fastapi-project's People

Stargazers

Gokay Gok avatar

Watchers

James Cloos avatar Ivan Yolgin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.