half-baked
v0.0.1
Published
a simple and easy-to-use local server based on express
Downloads
9
Readme
half-baked
A simple local server based on express
- You have some local data. It's probably JSON. Maybe it's an array of entities which have an "id" field.
- You have to spin up a local server to run as an API.
- You don't want to remember how CORS works.
- You wanna grab data from that JSON. Maybe you wanna grab it by that "id" field
- You prefer Futures(?) as a way of modelling asynchrony with sanity. (?)
Use half-baked
. It's built on top of express
and has the following features:
- Serve local data simply and configurably
- default routes are:
/
/:id
- default routes are:
- Load data on mount and configurably write it to a back-up on mount / unmount