|
a |
|
b/prediction_api/README.md |
|
|
1 |
## Prediction System API |
|
|
2 |
|
|
|
3 |
Build and run the docker image |
|
|
4 |
(change the port inside the dockerfile if needed) |
|
|
5 |
``` |
|
|
6 |
docker build -t ap_predictions . |
|
|
7 |
docker run -d -p 8080:8080 ap_predictions |
|
|
8 |
``` |
|
|
9 |
|
|
|
10 |
to check if server is running correctly send a GET request to /healthcheck |
|
|
11 |
``` |
|
|
12 |
curl http://localhost:8080/healthcheck |
|
|
13 |
``` |
|
|
14 |
|
|
|
15 |
Now the `/predict` endpoint is available and you can run the main script \ |
|
|
16 |
[back](https://github.com/Cesarmosqueira/Autoposture/tree/master#readme) |