- Clone this repository and cd into directory.
$ git clone https://github.com/spl0i7/trackerBusiness.git
$ cd trackerBusiness
- Setup database name and url in
config.js
- Edit recaptcha2 keys for your domain in
config.js
(https://www.google.com/recaptcha/admin) - Edit
<div class="g-recaptcha" data-sitekey="6LcPbyUUAAAAAN9EQl2ROqwK9mDyjp_9i1ORZ7Ly"></div>
to code given by recapcha insignup.js
, one you register for recaptcha. - Install forever module by
$ sudo npm install -g forever
- Install dependencies for this app by
$ npm install
- Edit the line in
bin/www
var port = normalizePort(process.env.PORT || '3000');
to
var port = normalizePort(process.env.PORT || '80');
this will change default port from 3000 to 80 (which is normally the case for most website).
- Start the website by
$ sudo forever start bin/www