#Introduction
This is a website to track down the progress, achivements and interests of BullCantShit CTF Team members
It is made with:
1 - Laravel (Server Side)
2 - Mysql (Database)
3 - HTML5 + AngularJS + Less (Client Side)
#Members
-
Sebastiano Mariani (Phat3)
-
Fabio Gritti (degrigis)
-
Lorenzo Fontana (r0rshark)
#Setup
-
Install composer
-
Install laravel as global requirerment through composer with
composer global require "laravel/installer=~1.1" -
Setup Apache:
-
Create virtual host with
serverName : local.ctftracker.com
documentRoot : your_www_directory/CTF_Tracker/public/
-
Make sure that your php has Mcrypt extension enabled
try to run:
php artisanin the app folder
-
-
Generate key with
php artisan key generateDO THIS STEP ONLY ONCE!! (I have already done that)
-
Insert your hostname in the local group
-
Go to bootstrap/start.php
-
Insert your hostname in the array parameter of the detectEnvironment method
-
verify that you are in the local group with
php artisan env
-
-
-
Create in the root folder a file named .env.local.php with this structure
return array( 'MYSQL_USER' => '<your_username>', 'MYSQL_PASSWD' => '<your_password>', );
-
Install Bower
-
Install npm
-
run
sudo npm install -
run
bower install -
run
./deploy.sh (coming soon....) -
Enjoy!
#How to extend the project
####Write new Css
All common files (file common for every pages) are included into a single global file called common.less, then this file is compiled and minified with less compiler and the result is copied into public/css/common.min.css file.
If you want to create a stand alone file just not include it in the common.less file, but you have to add it in the html page with this name <name_of_your_less_file>.min.css
######Steps:
-
Write the new file .less in assets
-
Include it in the main.less file
-
launch grunt:<your_env>
####Write new Javascript
---- to be defined ( we have to decide a directory organisation for our angular project )----