-
Notifications
You must be signed in to change notification settings - Fork 2
Home
aurelianeLucas edited this page Sep 27, 2017
·
2 revisions
This template is used by Telosys to generate a Python MVC web app.
The generated code is organized as follows :
- A set of methods defining a "REST resource" for each entity of the model
- A global set of methods "common_resource.py"
- A launcher "app.py"
- Python persistence template
- Python 3.x
- Bottle 0.12 ( must be installed with 'pip' )
You can find persistence template here
-
Define the variables REST_URL_ROOT and REST_API_ROOT in telosys-tools.cfg
for example :
REST_URL_ROOT=http://localhost:3000
,REST_API_ROOT=/api/v1
-
Download the bundle containing the templates
-
Generate the code with Telosys
Commands are the same with Windows, MAC OS and Linux
- pip install bottle
To launch the backed server use the following command :
$ python app.py
That's it !