A minimal example demonstrating a web app.
Mainly consists of server.js
backend and public/index.html
frontend.
The app displays a button that can be on or off (like a ligh-switch), the state is only stored in memory.
To run it:
- make sure you have got a recent node.js version and git installed
- checkout this repository using
git clone https://github.com/adriankast/mini-web-app.git
- open the cloned directory
- run
npm install
- run
node server.js
in this directory - visit your "app" on http://localhost:3000
The example uses node.js and the express web server.