2 points · by eliot_sykes · 12y ago · 6 comments
What do you suggest as ways of making this backend easy to run locally for a range of developer experience and operating systems? The only thing the developers would have in common is that they know some JavaScript.
Node.js would be an interesting alternative because you could keep it JavaScript-only across the tiers. It is supported across operating systems and it's easy to install. For instance, on Windows it can be installed as "cinst nodejs".
For database I recommend SQLite since it would avoid a lot of friction associated with database servers (ports, permission, etc.)
you don't even need to run apache or a node.js file server for this.
just put your responses into files on a relative path according to your request. eg: api/product/31.json api/product?orderby=name api/product?orderby=price
so if you have a demo webapp just package the static data with your app and redirect/configure api calls to the service in the live app