An example app using `micro` and `express`
Switch branches/tags
Nothing to show
Clone or download
Latest commit 37fe5db Oct 21, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore 📝 Initial commit Oct 21, 2018
LICENSE 📝 Initial commit Oct 21, 2018
README.md 📝 Initial commit Oct 21, 2018
express-app.js 📝 Initial commit Oct 21, 2018
micro-app.js 📝 Initial commit Oct 21, 2018
package-lock.json 📝 Initial commit Oct 21, 2018
package.json 📝 Initial commit Oct 21, 2018

README.md

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)