Minimal example showing how to have a web based code editor. This example also shows how you can separate out your code into components inspired by React.
Install the requirements using pip:
pip install -r requirements.txtTo use the code editor you need to have a fireworks API key in your .env file to have autocompletions work.
Once you do, you can run the server:
python code_editor.pyOpen your browser to http://localhost:5001 and you should see the chess board. Currently only Javascript, Python, HTML, and CSS syntax highlighting is implemented. Completions are triggered on . and key down events. Saving the code is not implemented yet.