blubox
v1.0.4
Published
Fast, efficient and minimalist web framework
Downloads
15
Maintainers
Readme
Fast, efficient and minimalist web framework
Easily create server applications with low cost and excellent speed. With Blubox you can create server applications with ease, as it is designed for those projects that do not require a super complex system and are only interested in meeting their requirements in a short time.
With Blubox you can start a project in a short time and the best thing is that Blubox will grow as the project requires it, this through different complements from Blubox or from the community.
Table of Contents
Quick start
Create a new folder for the project
mkdir project-name
cd project-name
Initialize a node project
npm init -y
Install Blubox
npm install blubox
In your index file create a basic server
const { App, Controller, Router } = require('blubox')
const controller = new Controller()
const router = new Router({
ping: controller..get(ctx => {
console.log(ctx.state.name)
ctx.response.status(200).json({
message: 'Pong!',
})
ctx.response.end()
}),
})
const app = new App(router)
app.listen(3000, () => {
console.log('Server listen on port 3000')
})
Run the server
node index.js
Documentation
You can find all Blubox documentation here.
Core Features
- Friendly development: Blubox is designed to be as simple and pleasant for the developer to use as possible.
- Small bundle size: The size of the Blubox package is designed to be as light as possible, as well as using the fewest external modules.
- Extendable: Blubox is designed to be as minimalist as possible, however, that does not mean that its range of options cannot be expanded easily.
License
Licensed under MIT.