/api-starter

A Starter for HTTP + JSON API

Primary LanguagePython

API Starter

Introduction

This is a simple starter for HTTP JSON API.

Main Stack:

  • Web Framework: Flask
  • ORM: SQLAlchemy
  • Database: PostgreSQL
  • Others:
    • alembic for database migration
    • marshmallow for json serialization, deserialization and validation
    • py.test for testing

Getting started

  • dotenv sample: see .env.sample
  • new dotenv for multiple environments, e.g.: .env.development
  • export environments: export PYTHONPATH=.
  • run app: ./manage.py runserver

Testing

  • run tests: ./run_tests.sh

Reference