Giter VIP home page Giter VIP logo

arashi87 / fastapi-template Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 118 KB

This is a simple RESTful FastAPI template that uses PostgreSQL as the database and Redis as the cache. It's deployed on Kubernetes with Helm and features a complete CI/CD pipeline, testing, and various other tools for implementation.

License: MIT License

Dockerfile 0.88% Python 91.71% Makefile 2.08% Smarty 3.95% Mako 1.37%

fastapi-template's People

Contributors

arashi87 avatar github-actions[bot] avatar

Watchers

 avatar  avatar

fastapi-template's Issues

Refactor Config class

The original design for setting environment variables was to leave env empty and let the Config defaults populate, but GitHub Action automatically parses env-sample and applies it to the environment variables as str, which breaks the flow and we don't get the expected variables and types.

So this question focuses on how to refactor the Config class, and the following functionality is what we expect the Config class to have.

  • We can assign the type of variable we want, and automatically validate it
  • Filter None and blank

Bugs and some changes

This issue documents the currently known bugs and some minor features that need to be implemented.

Bugs

  • CI trigger conditions don't work, release flow should only apply when the master branch push and integration flow are successful, but now it runs no matter what happens.
  • CI deploy job doesn't work now
  • Bandit doesn't work now

Feature

  • upgrade CI runner image version
  • add create_at and update_at field for base model
  • extract common testing function
  • migrate all config from setup.cfg to pyproject.toml (flake8 not support tool file now)

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.