A TypeScript wrapper around the epilog.js interpreter, with additional high-level functionality.
Note: The TypeScript compiler 'tsc' command must be installed in the command line.
Python must also be installed.
- Navigate to the root folder of the repo (i.e. the one containing index.html)
- Open two terminal windows.
- In the first window, run 'tsc -w'. This starts the TypeScript compiler in "watch" mode, which will recompile the code whenever you modify one of the .ts files in src/. (You will need to reload the webpage for your modifications to take effect.)
- In the second window, run 'py .\localserver.py'. This starts the server on your local machine on port 8000. If this clashes with something else you are running, feel free to modify PORT in localserver.py to a free port.
- In your browser, navigate to 'http://localhost:8000/index.html'.
- When the page loads, the following text should render: "Text to test that rendering is okay".
- This branch contains tests that run on page load. You can see the results of the tests in the browser's JavaScript console.