cms project using laravel, this time I used the statamic package as the core of the cms, in this project there is page management and many other collections.
- Laravel 11
- Mysql
- Livewire 3
- TailwindCSS
- AlpineJS
you can download the database in the .sql file or in the /backup
directory, download
a few things that need to be prepared:
- php 8.3
- database (mysql)
- composer v2.7^ or above
- node v20.15^ or above
- email : fajriyan@fajriyan.com
- password : fajriyan
- url : http://127.0.0.1:8000/admin/auth/login
-
Setup Database
make sure the database has been uploaded to the serve
-
Clone Project > Go to the project directory (terminal)
git clone https://github.com/fajriyan/box-cms cd ahs
-
Copy .env.example & rename .env (terminal)
cp .env.example .env
-
Setup Database Project (.env)
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD=
-
Setup SMTP Project (.env)
MAIL_MAILER=smtp MAIL_HOST=127.0.0.1 MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null MAIL_FROM_ADDRESS="hello@example.com" MAIL_FROM_NAME="${APP_NAME}"
-
Setup App Url & Assets Url (.env)
APP_URL=http://127.0.0.1:8000 (change) ASSET_URL=http://127.0.0.1:8000 (change)
-
Install Dependency Composer (terminal)
composer install
-
Install Dependency Node (terminal)
node install
-
Generate Key Project (terminal)
php artisan key:generate
-
Open Storage Link (terminal)
php artisan storage:link
-
Run application (terminal)
php artisan serve
npm run dev
*by default laravel run in http://localhost:8000 / http://127.0.0.1:8000
npm run build
-
done