1.0.12 • Published 5 years ago

@bravejs/bootstrapper v1.0.12

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

BraveJS Bootstrapper

This is a simple package to bootstrap new BraveJS application.

Installation

npm i @bravejs/bootstrapper

Usage

Now you have to create a server.js file in root, and .brave.json, and .env

NOTE: You will need nodemon package to start the server.js file

In .env file.

HOST=127.0.0.1
PORT=3333

In your .brave.json file you should have something like that.

{
    "name": "BraveJS",
    "version": "1.0.0",
    "providers": [
        "@bravejs/env/build/providers/EnvServiceProvider"
    ],
    "aliases": [],
    "commandsProviders": []
}

Now let's head to our server.js file

const { HttpServer } = require('.@bravejs/bootstrapper')
const httpServer = new HttpServer(__dirname)

httpServer.start((req, res) => {
    console.log(req)
    res.end()
});

Now you are ready, just try to access 127.0.0.1:3333

1.0.11

5 years ago

1.0.12

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.10

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago