Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/5hirish/flask-restful-template

Flask REST API Template
https://github.com/5hirish/flask-restful-template

celery docker docker-compose flask kubernetes postgresql python3 rabbitmq rest-api swagger travis-ci

Last synced: about 2 months ago
JSON representation

Flask REST API Template

Awesome Lists containing this project

README

        

## FooBar App: Flask RESTful Template
[![Python](https://img.shields.io/badge/python-3.4_3.5_3.6-blue.svg)]()
[![codecov](https://codecov.io/gh/5hirish/erpro/branch/master/graph/badge.svg)](https://codecov.io/gh/5hirish/flask-restful-template)
[![codacy](https://api.codacy.com/project/badge/Grade/a700a69ec99c46d4a5bef0eb6f774d78)](https://www.codacy.com/app/5hirish/flask-restful-template?utm_source=github.com&utm_medium=referral&utm_content=5hirish/flask-restful-template&utm_campaign=Badge_Grade)
[![travis](https://travis-ci.org/5hirish/flask-restful-template.svg?branch=master)](https://travis-ci.org/5hirish/flask-restful-template)

### Initial server set-up
1. `git clone https://github.com/5hirish/flask-restful-template`
2. [Install RabbiMQ](https://tecadmin.net/install-rabbitmq-server-on-ubuntu/)
3. [Install Python3](https://help.dreamhost.com/hc/en-us/articles/115000702772-Installing-a-custom-version-of-Python-3)
4. [Install PostgreSQL](https://www.fullstackpython.com/blog/postgresql-python-3-psycopg2-ubuntu-1604.html)
5. [Setup Virtual Env for Python3](https://help.dreamhost.com/hc/en-us/articles/115000695551-Installing-and-using-virtualenv-with-Python-3)

#### Post-Installation

1) Activate virtual environment `source`
2) `pip install -r requirements.txt`
3) Update `.env` files; refer the `.env_sample` file
4) Clone unit files `*.service` to `/etc/systemd/system`
5) Set up AWS `.credentials` ARN roles, set up `.bash_profile` variables

#### Monitor
* Flask: {baseUrl}:5000
* RabbitMQ: {baseUrl}:15672

#### Documentation
* Swagger API Documentation

#### Tests
* 9 unit test cases with 100% file coverage and 84% line coverage.