✨ DelphinX is ready-to-use package that allows you to speed up the process of creating your laravel application. This package is based on Docker. After installing DelphinX, you'll have ready-to-use Laravel-PostgreSQL-Nginx application with in-memory key-value database Redis ( It's optional, don't worry ). DlephinX will accelerate your laravel applications to supersonic speed by the power of an asynchronous framework called Swoole
- If you don't have Docker and Docker-Compose you should install it
- If you don't have Composer you should install it
- If you don't have git use following commands:
sudo apt-get updateandsudo apt-get install git - Create new laravel application via
laravel new <your_app_name> - Using
git clone https://github.com/kuzuru/delphinx.gitcopy all files from this repo to your app - Extract all files from folder called "delphinx" into main laravel's application folder
( Overwrite all files ) - Delete empty delphinx's folder 😄
- Run into your console / shell:
php delphinSetup - Open
.env.exampleand change these things:APP_NAMEAPP_URLDB_PASSWORDDB_DATABASEandDB_USERNAME- [!] Make these variables the same [!]CACHE_DRIVERandSESSION_DRIVER( Optional:redis( Recommended ) orfile)
- Rename
.env.exampleto.env - Generate app key using
php artisan key:generate - Install and compile node modules:
- If you're in dev environment:
npm install && npm run dev - If you're in production environment:
npm install && npm run prod
- If you're in dev environment:
- Build all services via
docker-compose build - Startup all containers:
docker-compose up -d( -d flag telling docker to run containers in the background ) - Using
docker exec -it php-fpm php artisan migratemigrate all tables to your database - If you're in a production environment run
php delphinProductionDeploy