Warning: This README.md document is a work in progress, and is currently only ready for internal usage.
This repository holds the PHP files which make up the application's front-end.
- Download and install XAMPP and Composer.
- Clone this repository into XAMPP's
htdocs/folder and name the folderdirectory.-
cd [xampp_root]/htdocs git clone https://github.com/VadaProject/application.git directory
-
- From XAMPP's control panel, start the Apache and MySQL servers.
- Log into the phpMyAdmin dashboard at https://localhost/phpmyadmin/
- From the SQL tab, load and execute the script vadaProject.sql.
- This should create a
vadaProjectdatabase and its tables.
- This should create a
- Optional step: load and execute the script create_dummy_claims.sql.
- Create a new account with the username
vadaUser, and a secure password.- Change the user's hostname from '
%' tolocalhost.
- Change the user's hostname from '
- Create the file config/.env.php with the following text:
$DB_SERVER = 'localhost'; $DB_USERNAME = 'vadaUser'; $DB_PASSWORD = '== MY PASSWORD =='; $DB_DATABASE = 'vadaProject';
- A local instance of the Vada Project should now be functional at https://localhost/directory.
T.B.D
To ensure consistency, please use Visual Studio Code alongside the following linting utilities.
- Install Composer and PHP
- macOS: available on Homebrew (
brew install php composer) - Windows and Linux install guide
- macOS: available on Homebrew (
- Install Composer dependencies:
-
composer install
- Binaries for GrumPHP, PHP-CS-Fixer, and PHP_CodeSniffer will be installed in
./vendor/bin/
-
- Install the suggested extensions in VS Code.
- A popup should appear upon opening the project for the first time.
- Warnings from PHP_Codesniffer should now appear in the "Problems" tab
- Before comitting, activate GrumPHP to show errors:
-
./vendor/bin/grumphp run
-