Delphinx
📦 DelphinX is ready-to-use package that allows you to speed up the process of creating your laravel application. After installing it, you'll have ready-to-use Laravel-PostgreSQL-Nginx application
Install / Use
/learn @Kuzuru/DelphinxREADME
<h1 align="center">DelphinX :dolphin:</h1>
<p align="center">
<img src="https://img.shields.io/badge/author-kuzuru-blue" alt="author: kuzuru">
<img src="https://img.shields.io/npm/l/apache" alt="license: MIT">
<img src="https://img.shields.io/badge/version-2.1.8-informational" alt="version: 2.1.8">
<img src="https://img.shields.io/github/issues/kuzuru/delphinx" alt="issues">
</p>
Description
:sparkles: 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 ). 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 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 :smile:
- 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:
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 migratemigrate all tables to your database - If you're in a production environment run
php delphinProductionDeploy
