To run the application, navigate to the directory where index.html
is stored and execute the following command:
$ python -m http.server <port_number>
This will start a web server on the specified port (e.g., 5000 to mimic Flask's default).
To view the demo, open your web browser and go to http://localhost:<port_number>
(for example, http://localhost:5000
).
Install the application dependencies:
$ npm install --include=dev
To run the application while changing its code, you can run a server that will rebuild and reload the application whenever its code changes:
$ npm run dev