Git Product home page Git Product logo

wmramadan / fastapi-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
35.0 3.0 5.0 124 KB

FastAPI REST API pre-configured with a database. This will get you up and running with CRUD operations quickly.

License: GNU General Public License v3.0

Python 97.68% Dockerfile 1.00% Shell 1.32%
boilerplate fastapi python rest-api pydantic sqlalchemy docker docker-compose pylint loguru celery redis pytest asyncio pymongo

fastapi-boilerplate's Issues

Add SSE Support

Initial checklist

Problem

Provide a stream of messages that updates from server side events.

Solution

Create SSE end-point which will update messages without refreshing of the end-point.

Alternatives

None

Requirements: Lock package versions

Initial checklist

Problem

It is probably best to lock the packages in the requirements files to a specific version. No locking to specific version numbers can cause inconsistencies and incompatibility in the future.

Solution

Lock packages to specific versions that have been tested. With each boilerplate version iterations the version number may be upgraded after testing.

Alternatives

Testing can be done across different version but this will take too long in CI.

Test Structure

Initial checklist

Problem

Tests are currently not separated

Solution

Create separate tests for:

  • main
  • users
  • items
  • tasks

Alternatives

None

Alembic Implementation

Initial checklist

Problem

Alembic has not been implemented so there is no way to run migrations.

Solution

Implement Alembic with documentation on how to apply migrations

Alternatives

None

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.