2019-08-31 14:46:07 +02:00
|
|
|
# Candymat Backend
|
2019-08-31 13:56:07 +02:00
|
|
|
|
|
|
|
The backend providing the data and managing changing the data.
|
|
|
|
|
|
|
|
## Development setup
|
|
|
|
### Install
|
|
|
|
Run inside this folder
|
|
|
|
```
|
2019-08-31 14:56:04 +02:00
|
|
|
./dev-setup.sh
|
2019-08-31 13:56:07 +02:00
|
|
|
```
|
|
|
|
|
2019-08-31 15:17:04 +02:00
|
|
|
#### For conda users:
|
2019-08-31 14:45:47 +02:00
|
|
|
```conda create -n candymat-userapp-api python=3.7.4 flask=1.1.1```
|
2019-08-31 15:17:04 +02:00
|
|
|
```conda activate candymat-userapp-api```
|
2019-08-31 14:45:47 +02:00
|
|
|
|
2019-08-31 13:56:07 +02:00
|
|
|
### Run
|
2019-08-31 14:52:04 +02:00
|
|
|
Start the flask server locally under http://127.0.0.1:5000 with the follwing script:
|
2019-08-31 13:56:07 +02:00
|
|
|
```
|
2019-08-31 14:52:04 +02:00
|
|
|
./dev-start.sh
|
2019-08-31 13:56:07 +02:00
|
|
|
```
|
2019-09-17 23:48:44 +02:00
|
|
|
Observe dummy data for http://127.0.0.1:5000/api/kandidaten
|
2019-08-31 13:56:07 +02:00
|
|
|
|
2019-08-31 15:17:04 +02:00
|
|
|
#### For Windows
|
|
|
|
```set set FLASK_APP=flask-server/main.py```
|
|
|
|
```flask run```
|