Fruit Analytics is a dashboard solution for startup companies.
- download & install Virtualbox
- download & install Vagrant (max 1.6.5)
- download & install Sourcetree
- clone
abfinformatika/vagrant-lamp
→[YOUR_WORKING_DIRECTORY]
- clone
tryfruit/fruit-dashboard
→[YOUR_WORKING_DIRECTORY/vagrant-lamp/sites/fruit-dashboard]
Start your vagrant server and ssh into it.
cd vagrant-lamp
vagrant up
vargrant ssh
####Make your server up to date.
sudo apt-get update
####Get the local environment files.
cd /var/www/fruit-dashboard
wget .env.local.php [ask for it from fellow developers]
####Install laravel
cd /var/www/fruit-dashboard
composer global require "laravel/installer=~1.1"
####Update the dependencies
cd /var/www/fruit-dashboard
composer update
####Create the database
cd /var/www/fruit-dashboard/scripts
sh run_sql_commands
####Migrate an external dependencys database
cd /var/www/fruit-dashboard
php artisan migrate --package=barryvdh/laravel-async-queue
####Setup cron
- replace
/var/www/fruit-dashboard/
with whatever is needed (f.e./home/abfinfor/public_html/dashboard.tryfruit.com/
) - replace
/usr/bin/php
with whatever is needed (f.e./usr/local/bin/php/
)
crontab -e
# get events
1-59/5 * * * * /usr/bin/php /var/www/fruit-dashboard/artisan events:get
# calculate daily values
2-59/5 * * * * /usr/bin/php /var/www/fruit-dashboard/artisan metrics:calc
# daily summary email
0 9 * * * /usr/bin/php /var/www/fruit-dashboard/artisan metrics:send
####Some small fixes, till the vendor package is fixed
mcedit vendor/waavi/mailman/src/Waavi/Mailman/Mailman.php
Row 93 should be changed to this:
$this->setCss(Config::get('waavi/mailman::css.file'));
Row 98 should be changed to this:
$this->from(Config::get('mail.from.address'), Config::get('mail.from.name'));
####Run the laravel server
sh serve
Open http://localhost:8001/
...aaaaaand you are done.