-
Notifications
You must be signed in to change notification settings - Fork 2
How to run threadlet?
Mithileysh Sathiyanarayanan edited this page Dec 4, 2018
·
7 revisions
Two separate servers need to be started (in two different terminals).
- Start a
flaskserver for modelling in the server.
- Open the terminal at the main code folder, execute the script:
./flask.sh. - You may want to grant execute permission to the file first:
chmod +x flask.sh. - If you get errors complaining about missing modules, just install them, e.g., installing
flaskmodule in Python:pip install flask.
- Start a normal web server to host static front-end files.
- If you have a Mac, you can use the built-in Python web server:
python -m http.server(Python 3) or trypython -m SimpleHTTPServer. Note that the server is cached, so quite annoying for front-end development (sometimes you need to deep refresh or restart the server). - I personally use https://www.npmjs.com/package/http-server
http-server -c-1providing an option to disable cache.
The tool then can be accessed at http://localhost:8000/demo/threadall/.