- some web service to retrieve and persist your application data.
- a web server to serve the source code and the static assets of your web application.
NodeJS is probably one of the easiest backend to setup for prototyping SPAs. It is very easy to create a simple web server in Node and to implement a simple REST API using Express or a similar framework, but you still need to install node and write some code to wire up your backend.
I wanted something even more lazy then that. I wanted a fully self-contained program able to:
- Serve static files
- Act as a simple JSON document store
- Provide a simple REST API to work with
- (bonus!) provide a way to pack web apps for easy distribution
…and that’s how I ended up developing LiteStore.