1.1.3 • Published 2 years ago

betiny-core v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

About

A framework using a custom wrapper API to reduce the amount of dependencies and enforce the security. The goal is to greatly simplify the common tools with a friendly syntax and separate the framework architecture from the business logic.

Less code is better :)

betiny

Dependencies

We try to reduce the amount of dependencies as much as possible by using the standart module.

Install

As usual ...

yarn add betiny-core

... create your own ".env" and fill it with your own informations

NODE_ENV=dev

# TODO: Allow range?
HTTP_PORT=3001
HTTP_HOST=127.0.0.1

# File system will be restricted to this folder path.
TEMP_PATH=

# As usual.
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=
MYSQL_CONNECTION_LIMIT=100
MYSQL_DATABASE=betiny

You can also use the boilerplate or start with this basic example:

const $ = require('betiny-core')

$.middleware.add("myCustom", 200, (req, res, next) => {
    // Any ...
    next()
})

$.route.get('/', (req, res, next) => {
    res.send("My root path serve.r")
})

$.arguments.add('myCommand', async () => {
    // Any ...
    process.exit()
})

$.server.start()

API

1.1.3

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.1.2

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago