The publically available repository for the website ironbrain.io, hosting a variety of useful webtools.
- PKSanc
IronBrain is fully capable of running locally for both development and personal use. Below follows the instruction on how to run it.
Deployment
- Download and extract the IronBrain zip file.
- Run
composer install --no-dev
in a terminal. (make sure Composer is properly installed). - Configure the generated .env to your liking. (make sure to configure the
APP_URL
and database logins properly). - Run the
npm install
command in a terminal. (ensure NPM is properly installed) - Run
php artisan migrate
in a terminal. (make sure that your database is running properly). - Run
php artisan db:seed --class=CoreSeeder
in a terminal to create default values. - Run
php artisan import:all
in a terminal to populate the database. - Run
npm run build
to compile the javascript and css files. - Run
php artisan optimize
to cache all the configs.
Development
- Download and extract the IronBrain zip file.
- Run
composer install
in a terminal. (make sure Composer is properly installed). - Configure the generated .env to your liking. (make sure to configure the
APP_URL
and database logins properly). - Make a copy of the .env called
.env.testing
. This should have a seperate database. - Run the
npm install
command in a terminal. (ensure NPM is properly installed) - Run
php artisan migrate
andphp artisan migrate --env=testing
in a terminal. (make sure that your database is running properly). - Run
php artisan db:seed --class=CoreSeeder
in a terminal to create default values. - Run
php artisan import:all
in a terminal to populate the database. - Open a terminal and run
php artisan serve
. (keep this terminal open). - Open a terminal and run
npm run dev
. (also keep this terminal).
After editing the base code of IronBrain, we recommend running the tests to insure everything keeps running smoothly.
- Browser tests:
php artisan dusk
. (a valid installation of Google Chrome must be installed). - Feature tests:
php artisan test --testsuite=Feature
. - Unit tests:
php artisan test --testsuite=Unit
.