Skip to content

blacksmithstudio/blockbase-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample App

using Blockbase

Version

v1.0.2

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!

About

Sample App on Blockbase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published