blockbase-sample

1.0.1 • Public • Published

Sample App

using Blockbase

Version

v1.0.1

Installation

You need to install :

Installing Blockbase In case you wanna you the CLI methods.

$ npm i -g blockbase

Update config/default.yml Update your mysql credentials to run the database

# Default DBMS
dbms : mysql
mysql :
    host : localhost
    user : YOURUSERNAME
    password : YOURPASSWORD
    port : 3306
    database : blocksample

Run the setup script This will install the DB and the tables.

$ npm run setup

Usage

Start the app, using node package.json scripts runner. PM2 required (installed with Blockbase) !

Development

$ npm run app

Sandbox / Production

$ npm run app:{env}

Sample Content

The sample contains

  • A complete config file in ./config/default.yml
  • An example of a model (User) in ./src/models/
  • An example of controllers linked to User (C.R.U.D.) in `./src/controllers``
  • An example of views in ./src/views
  • A postman docs in ./docs

Then your app is available on your localhost :

License

(Licence MIT) Coded by Blacksmith

Free Software, Hell Yeah!

Readme

Keywords

none

Package Sidebar

Install

npm i blockbase-sample

Weekly Downloads

1

Version

1.0.1

License

WTFPL

Unpacked Size

25.6 kB

Total Files

20

Last publish

Collaborators

  • shide