To run locally, follow these steps:
Make sure that your system has PHP, Composer and node with npm.
- Clone the repository
git clone https://github.com/Marsietis/capturetheflag.git - cd to project dir
cd capturetheflag - Install Composer Dependencies
composer install - Install NPM Dependencies
npm install - Create a copy of your .env file.
cp .env.example .env - Generate an app encryption key
php artisan key:generate - cd to database folder
cd database - Crete a sqlite database
touch database.sqlite - cd back
cd .. - Migrate the database
php artisan migrate - Run npm
npm run dev - Start project
php artisan serve - Go to ip shown in terminal
- Start building
- Download and install XAMPP from https://www.apachefriends.org/index.html.
- Run the XAMPP installer and open the XAMPP control panel.
- Ensure that the Apache and MySQL services are enabled.
- Download and run the Composer installer from https://getcomposer.org/download.
- During installation, check the box that says "Add PHP to PATH."
- Copy all project files in the htdocs folder. htdocs is where all of your local projects go. htdocs folder location: Windows - C:\Xampp\htdocs
- Open a terminal or command prompt and navigate to the project directory.
cd C:\Xampp\htdocs - Navigate to the project directory.
cd capturetheflag - Install Composer dependencies.
composer install - Copy Environment File
cp .env.example .env - Migrate Database
php artisan migrate - Restart Apache with the Xampp panel
- Now visit: http://localhost