Skip to content

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).

  1. Start a flask server 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 flask module in Python: pip install flask.
  1. 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 try python -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-1 providing an option to disable cache.

The tool then can be accessed at http://localhost:8000/demo/threadall/.

Clone this wiki locally