Skip to content

adrianocanofre/flask-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1d41d29 · Oct 27, 2019

History

37 Commits
Oct 27, 2019
Oct 27, 2019
Mar 29, 2019
Oct 27, 2019
Mar 28, 2019
Oct 27, 2019
Oct 27, 2019
Oct 27, 2019
Mar 29, 2019
Sep 30, 2019
Mar 9, 2019
Oct 27, 2019
Oct 2, 2019

Repository files navigation

Flask Template

Build Status GitHub license

This project contains a basic template for using em microservices, apis and other project. This is a RESTFUL service and response in json.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Linux/Mac OS
virtualenv
python 3
Installing
$ cd flask-template
$ virtualenv -p python3 venv
$ source venv/bin/activate
$ pip  install -r requirements.txt

Configure

You need to add some variable to run the project.

ENVIRONMENT=NAMEENVIRONMENT
SERVICE_NAME=YOURSERVICENAME

Variables that you can use:

config.py

config = {
    'development': DevelopmentConfig,
    'testing': TestingConfig,
    'production': ProductionConfig,
    'default': DevelopmentConfig
}

Running the application

Basic run:

$ python app.py

Build With Docker

$ docker build -t <Project-name> .
$ docker run -d -p 5000:80 --env-file=/path/file <Project-name>

Built With

Release History

0.0.1

  • Initial version(beta)

License

This project is licensed under the MIT License - see the LICENSE.md file for details