I have been trying to create a quick REST API using Nodejs and Express4 as I need an API quickly to make a prototype. While I need all basic CRUD operations, I tried to run the example from the following URL: http://runnable.com/U7bnCsACcG8MGzEc/restful-api-with-node-js-express-4
The example at this address only supports GET, but I believe I could quickly adapt it to support POST, PUT and DELETE. I do not care of having the data on memory, it is even preferable.
You can click to see the code there.
I get "Cannot GET /players" in my browser.
Any idea? If somebody has another short/quick example of a REST API with Nodejs with in-memory persistence, I'll take it as well :)