ivansarno / Users-Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swagger generated server

Build Status Coverage Status

Overview

This is a microservice designed to handle the users' data for the MyMessageInABottle application, developed in group during the Advanced Software Engineering course at University of Pisa. This server was generated by the swagger-codegen using an OpenAPI-Spec and use Connexion library on top of Flask to run.

Requirements

Python 3.9

Usage

To run the server, please execute the following from the root directory:

pip3 install -r requirements.txt
python3 -m swagger_server

and open your browser to here:

http://localhost:5001//ui/

Your Swagger definition lives here:

http://localhost:5001//swagger.json

To launch the integration tests, use tox:

sudo pip install tox
tox

Running with Docker

To run the server on a Docker container, please execute the following from the root directory:

# building the image
docker build -t swagger_server .

# starting up a container
docker run -p 5001:5001 swagger_server

About


Languages

Language:Python 96.7%Language:Shell 2.9%Language:Dockerfile 0.4%