- Clone this repo & update dependencies using composer.
$ cd larablog
$ composer update
- Install NPM dependencies:
$ npm install
- Build Vite using NPM:
$ npm run build
- Copy the .env.example file.
$ cp .env.example .env
- Create a new MySQL database dan set up the new database in .env file.
DB_DATABASE=database_name
DB_USERNAME=root
DB_PASSWORD=
- Open the seeder file located in
database/seeders/AdminSeeder.php
for admin login credential.
$name = 'admin'; // username
DB::table('users')->insert([
'name' => $name,
'slug' => Str::slug($name),
'email' => 'admin@jewepe.com', // email
'role' => 'admin', // role
'password' => Hash::make("12345678") // password
]);
- Create the application key:
$ php artisan key:generate
- Run migration & seed:
$ php artisan migrate --seed
- Run the project:
$ php artisan serve
- Home
- Login & register.
- Search article.
- Add comment on an article.
- Filter article by category, tag, or user.
- Dashboard
- Roles [Admin/Writter].
- CRUD article.
- Comment management.
- Create & delete category. (Admin only)
- User management. (Admin only)
- Login history. (Admin only)