Skip to content

Documentation - GitBook Integration

Notifications You must be signed in to change notification settings

nanoexpress/docs

Repository files navigation

description
Thanks for choosing nanoexpress!

Getting Started

Nano-framework for Node.js powered

{% hint style="info" %} We are on ProductHunt and StackShare! Please check it out {% endhint %}

Coming updates and latest news at here

Features

  • Express-compatible middleware* layer
  • Express-like API
  • Faster than most Node.js backend frameworks
  • In-built async support without any of HttpResponse instance*
  • Ajv* schema validator support
  • fast-json-stringify* serialization support
  • Swagger* support
  • In-built WebSocket support
  • In-built Stream support

{% hint style="warning" %} Code is provided as-is, do not expect or demand free support, warranty or debugging {% endhint %}

Installation

You can install

$ npm i nanoexpress
# or
$ yarn add nanoexpress

{% hint style="warning" %}

  • This library does not support HTTP2! {% endhint %}

As soon as you have installed the right package, let's create the first server

import nanoexpress from 'nanoexpress';

const app = nanoexpress();

app.get('/', (req, res) => {
    return res.send({ status: 'ok' });
});

app.listen(3000);

{% hint style="info" %} Using app.listen(PORT, '0.0.0.0') is recommended to use for Docker, Heroku and AWS {% endhint %}

Releases

No releases published

Packages

No packages published