1.0.1 • Published 5 years ago

blockbase-sample v1.0.1

Weekly downloads
3
License
WTFPL
Repository
github
Last release
5 years ago

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!