Tool for capturing unstructured data about actions and events and tools to link the actions with the events.
https://ccafs-eu-ifad.stats4sd.org
This platform is built using Laravel/PHP. The admin panel uses Backpack for Laravel.
- Clone repo:
git clone git@github.com:stats4sd/ccafs-eu-platform.git
- Copy
.env.example
as a new file and call it.env
- Update variables in
.env
file to match your local environment:- Check APP_URL is correct
- Update DB_DATABASE (name of the local MySQL database to use), DB_USERNAME (local MySQL username) and DB_PASSWORD (local MySQL password)
- If you need to test real email sending, update the MAIL_MAILER to mailgun, and copy over the Stats4SD Mailgun keys from 1 Password
- Create a local MySQL database with the same name used in the
.env
file - Run the following setup commands in the root project folder:
composer install
php artisan key:generate
php artisan backpack:install
php artisan telescope:publish
npm install
npm run dev
- Migrate the database:
php aritsan migrate:fresh --seed
or copy from the staging site