- Linux (WSL 2 on Windows)
- Docker
Clone the repository
git clone git@github.com:forma-web/forma-crm-backend.git
Install dependencies
cd crm-backend
# composer
composer install
# or composer in docker
docker run --rm --interactive --tty --volume $PWD:/app composer install
Configure environment
echo "alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'" >> ~/.bashrc
cp .env.example .env
sail php artisan key:generate && sail php artisan jwt:secret
Make migrations
sail php artisan migrate
Start the server
sail up -d
Stop the server
sail down
Interact with framework
sail php artisan