Code Monkey home page Code Monkey logo

template-application-flask's Introduction

Template Application Flask

Overview

This is a template application that can be used to quickly create an API using Python and the Flask framework. This template includes a number of already implemented features and modules, including:

  • Python/Flask-based API that writes to a database using API key authentication with example endpoints
  • PostgreSQL database + Alembic migrations configured for updating the database when the SQLAlchemy database models are updated
  • Thorough formatting & linting tools
  • Logging, with formatting in both human-readable and JSON formats
  • Backend script that generates a CSV locally or on S3 with proper credentials
  • Ability to run the various utility scripts inside or outside of Docker
  • Restructured and improved API request and response error handling which gives more details than the out-of-the-box approach for both Connexion and Pydantic
  • Easy environment variable configuration for local development using a local.env file

The template application is intended to work with the infrastructure from template-infra.

Installation

To get started using the template infrastructure on your project, install the template by cloning the template repository and copying the following folders/files to your repository:

# fetch latest version of the template
git clone --single-branch --branch main --depth 1 [email protected]:navapbc/template-application-flask.git

cp -r \
  template-application-flask/.github \
  template-application-flask/bin \
  template-application-flask/docs \
  template-application-flask/app \
  template-application-flask/docker-compose.yml \
  .

# clean up the template folder
rm -fr template-application-flask

Now you're ready to get started.

template-application-flask's People

Contributors

bbemis017 avatar chouinar avatar dependabot[bot] avatar jamesbursa avatar lorenyu avatar lxqnt avatar rocketnova avatar rsk2 avatar zelgadis 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.