Important
Whenever you pull down commits, make sure to check for dependency changes and setup instruction changes.
If there is a dependency change, re-run composer install
.
- Clone the repository (duh)
- Open the repository in a command prompt window and run
composer install
- Create a symlink from your XAMPP PHP folder to the repository's source folder (See the tip below)
- Create a
nimbus_drive
database in MySQL - Open the repository source folder (
/src/
) in a command prompt window and runphp index.php /ilgar/migrate
- Run XAMPP Apache and MySQL servers
- You can now access the webpage at http://localhost:80
Tip
In order to create a symlink, you must be using a command prompt running as Administrator.
Assuming XAMPP is installed in C:\XAMPP
, your (Destination)
will be
C:\xampp\htdocs
. This folder most likely will pre-exist and will need deleted.
Your (Source)
will be the path of the repository source folder on your machine, such as
C:\Users\(User)\Documents\GitHub\website\src
.
Full command example:
mklink /D "C:\xampp\htdocs" "C:\Users\(User)\Documents\GitHub\website\src"
After the symlink is created, you can continue with the other instructions.
Tip
If you are on MacOS or Linux, the command is similar but using
ln -s (Source) (Destination)
.
Full command example:
ln -s "~/Documents/GitHub/website/src" "/Applications/XAMPP/htdocs"
Caution
If you drop the database or adjust migrations, you will have to edit the migration.json
file in order for it to properly update.
This file is located at /vendor/chez14/f3-ilgar/data/migration.json
.
The best way to fix everything would be to drop every table in the database and set the json file's "version"
to -1
, then remigrate.