micro-vs-express-example

An example app using `micro` and `express`

MIT License

Stars
2

micro vs Express example

An example app that has a single POST endpoint at its root.

Extracts POST body value, increments it by and returns it.

If request is not POST, 404s.

Requirements

  • Node 8+
  • npm 5+

Commands

  • npm install to install the dependencies
  • npm run express to run the Express app (default port 3000)
  • npm run micro to run the micro app (default port 3000)