🐬
DelphinX
Description
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 ). DelphinX will accelerate your laravel applications to supersonic speed by the power of an asynchronous framework called Swoole
Installation
- 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 update
andsudo apt-get install git
- Create new laravel application via
laravel new <your_app_name>
- Using
git clone https://github.com/kuzuru/delphinx.git
copy 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.example
and change these things:APP_NAME
APP_URL
DB_PASSWORD
DB_DATABASE
andDB_USERNAME
- [!] Make these variables the same [!]CACHE_DRIVER
andSESSION_DRIVER
( Optional:redis
( Recommended ) orfile
)
- Rename
.env.example
to.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:
Usage
- 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 migrate
migrate all tables to your database - If you're in a production environment run
php delphinProductionDeploy