source: src/mapservice/codegen/templates/README.mustache@ ac11efe

debian/bullseye
Last change on this file since ac11efe was 5e4cb73, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago

Refactored mapservice

  • mapservice is a connexion python webservice with openapi defined api
  • mapservice-webclient is a angular app, consuming the openapi webservice mapservice
  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[3a89adb]1# OpenAPI generated server
2
3## Overview
4This server was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the
5[OpenAPI-Spec](https://openapis.org) from a remote server, you can easily generate a server stub. This
6is an example of building a OpenAPI-enabled Flask server.
7
8This example uses the [Connexion](https://github.com/zalando/connexion) library on top of Flask.
9
10## Requirements
11{{#supportPython2}}
12Python 2.7+
13{{/supportPython2}}
14{{^supportPython2}}
15Python 3.5.2+
16{{/supportPython2}}
17
18## Usage
19To run the server, please execute the following from the root directory:
20
21```
22{{#supportPython2}}
23pip install -r requirements.txt
24python -m {{packageName}}
25{{/supportPython2}}
26{{^supportPython2}}
27pip3 install -r requirements.txt
28python3 -m {{packageName}}
29{{/supportPython2}}
30```
31
32and open your browser to here:
33
34```
35http://localhost:{{serverPort}}{{contextPath}}/ui/
36```
37
38Your OpenAPI definition lives here:
39
40```
41http://localhost:{{serverPort}}{{contextPath}}/openapi.json
42```
43
44To launch the integration tests, use tox:
45```
46sudo pip install tox
47tox
48```
49
50## Running with Docker
51
52To run the server on a Docker container, please execute the following from the root directory:
53
54```bash
55# building the image
56docker build -t {{packageName}} .
57
58# starting up a container
59docker run -p {{serverPort}}:{{serverPort}} {{packageName}}
60```
Note: See TracBrowser for help on using the repository browser.