Bula means hello in Fijian. Bula!
Bula is a ready-made express-based application using MySQL. There is plenty more to come soon, but the idea is to have an installable application using MySQL, Redis, and Angular, complete with tests and docs. Hence, more to come.
The following:
node bin/bula.js -a 'My Application' -p ~/Desktop
Gets you:
~/Desktop/my-application
So:
node bin/bula.js -a 'My Application' -p ~/Desktop
cd ~/Desktop/my-application
npm install
source ./config/variables.txt*
node app
...installs the app, its dependencies, and starts it.
*Make sure that you set up the environmental variables. See below for more information.
See https://github.com/dlochrie/bula/wiki/Installation for more details on installation.
To run the bula
tests:
// To be written.
To run the locally installed application's tests:
(requires that create a test
database)
npm test
If you get Error: req.flash() requires sessions
, it most likely means that
the server cannot connect to redis
.