Make sure you have PHP and Composer installed globally on your machine
php --version
PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologiesand
composer --version
Composer version 2.5.4 2023-02-15 13:10:06Make sure Docker is running
docker --version
Docker version 24.0.6, build ed223bcCreate your sail alias by adding the following to your bash profile (e.g. .bashrc, .zshrc etc.).
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
Clone the project
cd ~/my-projects
git clone https://github.com/reneweiser/skhc-platform.git skhc-platform
[...]
cd skhc-platformInstall composer dependencies
composer installCopy the example environment settings
cp .env.example .envChange the newly created .env file
+ DB_HOST=mysql
- DB_HOST=127.0.0.1Start docker containers
sail up -dGenerate an app key for the project
sail artisan key:generateMigrate the database
sail artisan migrate --seedInstall npm dependencies
sail npm installRun the dev server
sail npm run dev