From c002fd2381d0c3d19f5f90bf589f9d50ef3b5316 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Wed, 17 Feb 2021 20:10:30 +0100 Subject: readme update --- readme.md | 12 ++++++++---- readme_en.md | 10 +++++++--- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index 7481ea8..2ea7fd3 100644 --- a/readme.md +++ b/readme.md @@ -85,7 +85,7 @@ Als je het goed gedaan hebt krijg je een nieuwe prompt te zien met `(venv)` er v ## Hoe starten -Om dit project te starten moet je 2 terminals gebruiken die afzonderlijk de flask server en de react server starten: +Om dit project te starten moet je 3 terminals gebruiken die afzonderlijk de flask server en de react server starten: ```sh # term 1 @@ -97,14 +97,18 @@ python3 api/main.py # term 2 yarn dev + +# term 3 + +sudo nginx -c $PWD/nginx.conf # dit werkt alleen op unix (ik moet nog ooit gaan testen op windows) ``` ## Hoe API endpoints testen ```sh # Als je alleen de flask server draait: -curl http://localhost:5000/api/ +curl http://localhost:5000/ -# Als de react server draait: -curl http://localhost:3000/api/ +# Als nginx ook draait: +curl http://localhost:2080/api/ ``` diff --git a/readme_en.md b/readme_en.md index 34bba27..c1f2315 100644 --- a/readme_en.md +++ b/readme_en.md @@ -99,14 +99,18 @@ python3 api/main.py # term 2 yarn dev + +# term 3 + +sudo nginx -c $PWD/nginx.conf # this only works on unix (i'm going to test on windows later) ``` ## How to test API endpoints ```sh # If you're running the standalone flask server: -curl http://localhost:5000/api/ +curl http://localhost:5000/ -# If you're running flask and react at the same time: -curl http://localhost:3000/api/ +# If you're running flask and nginx at the same time: +curl http://localhost:2080/api/ ``` -- cgit v1.2.3