This project contains a basic template for using em microservices, apis and other project. This is a RESTFUL service and response in json.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
virtualenv
python 3
$ cd flask-template
$ virtualenv -p python3 venv
$ source venv/bin/activate
$ pip install -r requirements.txt
You need to add some variable to run the project.
ENVIRONMENT=NAMEENVIRONMENT
SERVICE_NAME=YOURSERVICENAME
Variables that you can use:
config = {
'development': DevelopmentConfig,
'testing': TestingConfig,
'production': ProductionConfig,
'default': DevelopmentConfig
}
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>
0.0.1
- Initial version(beta)
This project is licensed under the MIT License - see the LICENSE.md file for details