0.6.1 • Published 2 years ago

unicore v0.6.1

Weekly downloads
1,989
License
MIT
Repository
github
Last release
2 years ago

Unicore

Based on this template

Build Status Coverage Maintainability Vulnerabilities Dependency Status Dev Dependency Status

Standard batteries-included Ackee suit for an API Core.

Built on top of express and this is all you have to change.

Features

Quickstart

import {
    createServer,
    jsonParser,
    defaultFinalHandler,
    defaultRootHandler,
    errorHandler,
} from 'unicore';

const server = createServer(options); // Enhanced Express app

server.use(defaultRootHandler);
server.use(errorHandler);
server.use(defaultFinalHandler);

server.listenAsync(3000)
    .then(() => console.log('Listening.'))
    .then(() => server.destroy())
    .then(() => console.log('Server shut down.'));
-> GET http://localhost:3000
<-
{
    🦄: "Greetings!",
    Application I am running: {
        name: "your-api",
        version: "1.0.0"
    },
    My time is: "2018-05-24T12:56:18.340Z",
    I am online since: "2018-05-24T12:56:13.537Z"
}

License

This project is licensed under MIT.

0.6.1

2 years ago

0.6.0

2 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago