Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hugodf/micro-vs-express-example

An example app using `micro` and `express`
https://github.com/hugodf/micro-vs-express-example

express micro nodejs

Last synced: 24 days ago
JSON representation

An example app using `micro` and `express`

Awesome Lists containing this project

README

        

# `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)