Closed Luoxd1996 closed 6 years ago
Hi, so the way this works is:
1) The backend runs on a port (we use default 5001). If you pass a separate port number to tool.py, you will need to edit index.html in the frontend to reflect that.
2) The frontend can be run on any port: if you run python -m SimpleHTTPServer, it runs by default on port 8000. It sends requests to the backend server, which is listening on localhost:
So the correct steps (if you run on your own machine) are: 1) Run backend (without passing port argument if you don't care which port) -- this makes the server run on localhost:5001
2) Run frontend on whichever port you like and then navigate to localhost: