Skip to content

ramirog89/python-fastapi-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python REST API

  • This source code provides a minimal REST API implementation with FastAPI

Swagger

  • <url>/docs

Commands

  • installation: make install install all packages from requirements
  • dev: make dev build swagger definitions and starts the server on development mode listening to file changes
  • testprod: make testprod run application in production mode in localhost
  • lint: make lint linter rules with flake8
  • test: make test unit and integration tests
  • build: make build build docker image with latest change
  • prod: make prod run docker image in production mode

Scaffolding

  • authentication authentication abstraction
  • config server settings, DB connection, Logger, etc
  • controllers routes configuration
  • database setup database connection and register orm models
  • models classes representing entities. They are also used to normalize data
  • schemas classes that allows fastapi document swagger input/output routes
  • respositories data abstraction layers
  • services business logic to be used primary by controllers
  • utils utilities shared in the application
  • tests test setup

Technologies

Requirements

  • python >= 3.7
  • pip >= 3.7
  • Makefile

Recommendations

  • Use virtualenv to manage dependencies per project. (Virtualenvwrapper is recommended)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published