Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsantiagoh/flask-service
A flask service
https://github.com/jsantiagoh/flask-service
Last synced: 10 days ago
JSON representation
A flask service
- Host: GitHub
- URL: https://github.com/jsantiagoh/flask-service
- Owner: jsantiagoh
- Created: 2018-04-22T10:23:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-22T10:23:35.000Z (over 6 years ago)
- Last Synced: 2024-10-28T16:48:07.176Z (about 2 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Python Microservice Sandbox
===========================# Requirements
## Running
- [Docker](https://www.docker.com)## Development
- [Python 3](https://www.python.org/)
- [Virtualenv](http://pypi.python.org/pypi/virtualenv)Dependencies are installed using [pip](https://pip.pypa.io/en/stable/)
# Run
```
❯ make run
```This will build the docker image for the project and then will run it locally. After this request [http://localhost:8080](http://localhost:8080)
# Development
Use a virtual environment for python, don't mess up with the system version.
Check that you have `virtualenv` installed. If not install it
```
❯ virtualenv --version
```Prepare the virtual environment, this is only needed once after you get the code of the project.
```
❯ virtualenv -p /usr/local/bin/python3 flask-service-env
```Activate the virtual environment.
```
❯ source flask-service-env/bin/activate
```Install dependencies for the project
```
❯ pip install -r requirements.txt
```Run the project
```
❯ python src/app.py
```# References
- [Virtual Environments](http://docs.python-guide.org/en/latest/dev/virtualenvs)