GithubHelp home page GithubHelp logo

quantstu / fastapi-motor-beanie Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hyunwook-kim-dhk/fastapi-motor-beanie

0.0 0.0 0.0 48 KB

Fastapi - motor - beanie stack practice

Dockerfile 0.95% Python 97.34% Shell 1.71%

fastapi-motor-beanie's Introduction

FastAPI Motor Skeleton

Project Setup

Check the python version first. The version should be same as .python-version.

python --version

Then you can install dependencies by using Poetry.

poetry install

This command will create ".venv" in your current working directory.

To use virtualenv, you can run

source .venv/bin/activate

Or you can setup your IDEs with the ".venv" directory.

After you succeed to install every dependency, you are ready to develop!

Testing Suites

This project includes the following steps to test.

  • flake8 : source code format
  • black : source code format
  • isort : import order
  • pylint : static analysis
  • mypy : type check
  • pytest : automatic test
  • coverage : automatic test coverage

You can find the more detail in ./test.sh file.

Test with Minikube and Skaffold

This project uses Minikube and Skaffold to improve the local development environments.

You can deploy and test the service in your Minikube cluster.

skaffold delete
skaffold run --tail
minikube tunnel -c

Project Structures

The project includes the following files and modules.

This file includes the fast api application instance and defines the behavior when the fast api starts to run.

This module includes the every apis to provide in this service.

This module includes the common independent utils.

This module includes the Setting class. Setting class automatically loads the environment variables.

This module includes the several sub-modules. The sub-modules aim to implement the domain specific logic.

This module includes the below setup files

fastapi-motor-beanie's People

Contributors

hyunwook-kim-dhk 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.