-
Notifications
You must be signed in to change notification settings - Fork 2
How to run threadlet?
Phong Nguyen edited this page Dec 4, 2018
·
7 revisions
Two separate servers need to be started.
- Install
flaskmodule in Python:pip install flask. - 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. - 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). 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/.