The new website for Fight for kids, developed in PHP using the Laravel framework. - Developed by BIT Year 2 students at SIT.
-
Click here to submit a bug report or request a feature. A github account is required.
This application is intended for the private use by Fight for Kidz. For more information please contact Samuel Grant
While we recommend that this application is deployed on a Linux, Apache, Mysql & PHP (LAMP) stack, this application may be deployed on any system so long as the following requirements are met.
Software
- PHP 7.1
- Apache 2
- MySQL
- Composer
Hardware
- 1Ghz CPU
- 2GB Memory
- 10GB HDD Space
Hosting can be purchased at Digital Ocean or GoDaddy.
cd /var/www/
git clone https://github.com/samuelgrant/fight4kidz
composer install
cp .env.example .env
php artisan key:generate
- Fill out the .env file
- Register a Google Invisible reCAPTCHA account here
- Create an Apache Virtual Hosts file. You can use the example below to test your site, but check that you update the DocumentRoot. When you publish this site to production please create a full virtual hosts file. Refer to Apache2 Documentation. Then restart apache2.
<VirtualHost *:80>
ServerAdmin caitlin@viliana.space
DocumentRoot "/var/www/fight4kidz/public"
ServerName f4k.localhost
</VirtualHost>
- Execute the following command:
php artisan migrate
Database Notice: Please create a new MySQL user DO NOT USE ROOT. Grant that user the following privileges:
- Data:
SELECT, INSERT, UPDATE, DELETE, FILE
- Structure:
CREATE, ALTER, INDEX, DROP, CREATE TEMPORARY TABLES, CREATE ROUTINE, ALTER ROUTINE, EXECUTE, EVENT, TRIGER
- Admin:
REFERENCES
Please secure your site with an SSL certificate. You can get a free certificate using Certbot from Let's Encrypt.
Windows Users: To create the required symbolic link run the command php artisan storage:link
.
To make use of the rich text editor run the command php artisan vendor:publish --tag=ckeditor