1.0.4 • Published 5 months ago

blubox v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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.

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.0

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago