chandra-prakash-reddy / flask-boiler-plate

This project provides the production ready boiler plate to start Rest Api development in python using flask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask-boiler-plate

Build Status Build Status Azure DevOps coverage (branch) Azure DevOps tests (branch)

This project provides the production ready boiler plate to start Rest Api development in python using flask

PreRequisites

SetUp

Tests

  • install dependencies : pip install -r requirements.txt
  • Run TestCases : pytest tests --doctest-modules --junitxml=junit/test-results.xml
  • Code Coverage : py.test -v --cov=publication --cov=common --cov-report xml --cov-report html

Deployment

  • Standalone
    • install dependencies pip install -r requirements.txt
    • python wsgi.py (recomended for development)
    • ./scripts/run.sh
      • enviroment example:-dev,prod
      • port example:-2556

Verify

  • open http(s): // <host>:<port> in web browser
  • documentation of apis will be available

References

About

This project provides the production ready boiler plate to start Rest Api development in python using flask


Languages

Language:Python 99.2%Language:Shell 0.8%