Giter Site home page Giter Site logo

flask_api_example's Introduction

Flask REST API Example

The reference Flask API example provides insight into:
  • Structuring and Composition
  • Building
  • Source code documentation
  • API documentation
  • Testing
  • Automation (Tox)
  • Using Flask-Marshmallow
  • Using APISpec

Installation

Currently the project isn't hosted on PyPI, so you can install it manually.

Development

Build development Docker Image:

tox -e build

Spin up the infrastructure:

tox -e up

Shutdown the infrastructure:

tox -e down

Initialize the database:

tox -e init-db

On Models change, make a new migration:

tox -e make-migration

Migrate:

tox -e migrate

Run Style Guide against the latest code:

tox -e style-guide

Run Unit Tests against the latest code:

tox -e unit-tests

Run Unit Tests with Coverage:

tox -e unit-tests-with-coverage

Show the coverage report:

tox -e coverage-report

Generate documentation from code:

tox -e docs

Generate OpenAPI JSON specification:

tox -e docs-openapi

flask_api_example's People

Contributors

jjj4x avatar

Watchers

 avatar

flask_api_example's Issues

Database

  • PostgreSQL
  • Setup in Docker
  • FlaskSQLAlchemy, Flask-Migrate, SQLAlchemy, Alembic settings
  • Provide sane defaults
  • Documentation with commands and usage examples
  • Database in tests with migrations, cleanups, etc

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.