Sign inSign up

brsynth/rest

By brsynth

Updated over 6 years ago

REST server based on Flask or Redis

Image
0

385

brsynth/rest repository overview

Rest -- REST (Flask or Redis) server

Rest run a Flask or Redis server. Sources are available at: https://github.com/brsynth/rest.

Quick start

The main code is src/Main.py. Launch the server with:

python3 ./src/Main.py [flask|redis]

Customize

The REST functions (`run` and `post`) has to be filled in file app/app.py.

Docker

REST service can run in a Docker container. To do so, you have first to build the image to instanciate.

Build images

Images can be built with:

docker-compose -f docker/docker-compose.yml build [flask|redis|flask-conda|redis-conda]

NOTE redis image is based on flask one and redis-conda is based on flask-conda. So if you want to build the first ones, second ones have to be built.

Run

REST service is launched with:

docker-compose -f docker/docker-compose.yml up [flask|redis|flask-conda|redis-conda]

Licence

Rest is released under the MIT licence. See the LICENCE.txt file for details.

Tag summary

Content type

Image

Digest

Size

394.8 MB

Last updated

over 6 years ago

docker pull brsynth/rest:flask-conda