- Dockerd is installed
- php 8.1
- Clone repository and set up .env variables with your favorite editors.
git clone https://github.com/humble92/laravel-dlcg.git
cd laravel-dlcg
cp .env_example .env
vi .env
- Install
composer install --ignore-platform-reqs
npm install
npm run dev
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
- Run servers.
sudo sail up
- DB migration
Import sample.sql into your DB with your favorite mysql client tools.
Then, migrate to apply for foreign keys on appropriate tables.
sudo sail artisan migrate
- Connect to server
You can connect to the server http://localhost
http://localhost/management
http://localhost/api/categories
http://localhost/api/products
The Laravel framework is open-sourced software licensed under the MIT license.