- This base project is fully intergrate with docker, so you will need to install docker first before i it.
- Pull request are welcome.
Laravel 8.4 with:
NuxtJS 2.15.3 with:
Preconfigured docker development by sun-asterusk-research/docker-php-development
- After clone this repository into your computer, run following command:
cd _docker/
cp .env.example .env
cp services services
cd ../api/
cp .env.example .env
cd ../web/
cp .env.example .env
cd ../_docker/
./project up
- After running
./project up
command you will need to wait for a few minute for project's setup. - After project setup in complete, you will need to setup install Laravel and NuxtJS package
- Inside
_docker/
folder, run following command:
./projec sh php
- This command will allow you to enter Laravel container, inside this container, run following command:
COMPOSER_MEMORY_LIMIT=-1 composer install
php artisan key:generate
- Inside
_docker/
folder, run following command:
./projec sh web
- This command will allow you to enter NuxtJS container, inside this container, run following command:
yarn
yarn dev
- After running
yarn dev
command, NuxtJS will start running your website in dev mode and you can now access your site with following domain:
http://base.localhost:9876
- Support pull request template file
- Support doctrine/dbal for running migration.
- Support debug with laravel/telescope
http://base.localhost:9876/telescope/requests
. - Support sentry/sentry-laravel (Need to provide
SENTRY_LARAVEL_DSN
in.env
file). - Custom
Resources
class. - Support auto generate model command:
php artisan make:model [ModelName]
, this command will create:- Model Class inside
app/Models/
folder. - Resource Class bind to that model inside
app/Http/Resources
folder. - Query Class bind to that model inside
app/Queries
.
- Model Class inside
- Preconfigured mailing feature with mailhog
http://mailhog.localhost:9876
(Need to add mailhog to_docker/services
). - Support coding convetion lint tool by running following command:
composer sniff // Running phpcs to check for coding convention
composer autofix // Running phpcbf to fix coding convention or report if can't fix
composer test // Ruuning unit test
- Support Element-UI.
- Support tailwindcss with
JIT
mode enable. - Support i18n with preconfigured locale for Vietnamese, English, Japanese.
- Support material-icon.
- Support SCSS.
- Support Google Analytic (Need to add
GA_ID
in.env
file). - Preconfigured Sentry (Need to insstall + un-comment sentry in
nuxt.config.js
and provideSENTRY_DSN
in.env
file). - Preconfigured Laravel echo (Need to insstall + un-comment necessary confing in
nuxt.config.js
). - Preconfigured
nuxtServerInit
andnuxtClientInit
. - Support eslint with following command:
yarn lint // Report conding convetion
yarn lint --fix // Try to fix coding convetion or report if can't fix
Comming soon...