Get Started With DCSLab - GitzJoey/DCSLab Wiki
Backend Workflow
Here is our backend workflow...
Requirement (Windows)
- Download & Install Git, Tortoise Git
- Download & Extract PHP to C:/php (default)
- Copy php.ini-development and rename to php.ini
- Edit php.ini enable these extension
extension=bz2 extension=curl extension=ffi extension=ftp extension=fileinfo extension=gd extension=gettext extension=gmp extension=intl extension=imap extension=ldap extension=mbstring extension=exif ; Must be after mbstring as it depends on it extension=mysqli ;extension=oci8_12c ; Use with Oracle Database 12c Instant Client ;extension=oci8_19 ; Use with Oracle Database 19 Instant Client extension=odbc extension=openssl ;extension=pdo_firebird extension=pdo_mysql ;extension=pdo_oci extension=pdo_odbc extension=pdo_pgsql extension=pdo_sqlite extension=pgsql extension=shmop
- Download & Install Composer, NPM / NodeJS
- Download & Install VS Code
Installation
- Pull DCSLab to your local machine
- copy .env.example .env
- Fill connection string in .env
- Fill connection redis in .env
- Fill connection pusher in .env
- Open terminal on your VSCode and run this line per line :
composer install php artisan app:install php artisan serve
- Fill your default login credentical
- Open http://localhost:8000/login on your browser and login with your credentical u have created (we recommend use Firefox for better experience)
How do we get started
Creating Database Business :
01.01. Create file migration in migration
01.02. Create file migration in migration/testdb
01.03. Create model
Creating Seeder :
02.01. Create factory
02.02. Create table seeder
02.03. Test the seeder make sure it works
Creating Service :
03.01. Create service
03.02. Create service impl
03.03. Register service in AppServiceProvider
03.04. Create service test
03.05. Test CRUD make sure it works
Creating Controller :
04.01. Make Resource
04.02. Make Request
04.03. Make Policy
04.04. Make Controller
04.05. Insert to API.php
04.06. Create API Test, the content is adjusted (estimates the probability that may occur)
04.07. Test that make sure it works
Creating Front End :
05.01. Insert translate which we want to add in id.json
05.02. Insert translate which we want to add in en.json
05.03. Update dashboard service impl
05.04. Create vue file
05.05. Update Router