bajo

0.3.5 • Public • Published

Bajo Framework

Installation

Note: you must have a proper install of node, npm and/or yarn before

Open your terminal and type:

npm install bajo
# or
yarn add bajo

Fire up!

Goto your project directory, create the index.js file and put this in it:

const bajo = require('bajo')
bajo.boot()
  .then(scope => {
  })
  .catch(err => {
    console.trace(err)
  })

Bajo application ALWAYS need a data directory to put configuration files, etc. This cloud be located inside or outside your project directory.

Lets assume you're going to put your data directory inside your project directory. So please create a new directory called data first. After that, just type in your terminal:

node index.js --dir-data=data

Or you could use dotenv by creating .env file in the same directory as index.js, and put this inside:

DIR_DATA = .\data

Now you can omit calling node with arguments, you just need to type:

node index.js

Documentation

API

License

MIT License

Package Sidebar

Install

npm i bajo

Weekly Downloads

176

Version

0.3.5

License

MIT

Unpacked Size

1.38 MB

Total Files

169

Last publish

Collaborators

  • ardhi