Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laracasts-jverd/blog-app
A modern monolitic blog app built with Laravel 11 and Vue.js 3
https://github.com/laracasts-jverd/blog-app
laravel vuejs
Last synced: about 2 months ago
JSON representation
A modern monolitic blog app built with Laravel 11 and Vue.js 3
- Host: GitHub
- URL: https://github.com/laracasts-jverd/blog-app
- Owner: laracasts-jverd
- Created: 2024-05-26T21:10:52.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-19T08:44:17.000Z (6 months ago)
- Last Synced: 2024-07-24T12:52:31.745Z (5 months ago)
- Topics: laravel, vuejs
- Language: PHP
- Homepage:
- Size: 132 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog App
A modern monolitic blog app built with Laravel 11 and Vue.js 3.
## Stack
- Laravel 11 / PHP 8.2
- Vue.js 3 (composition API)
- Inertia
- Breeze (auth)
- Tailwind## Features
- Auth (register & login) using Breeze
- List & read articles
- Update & delete articles (only yours)
- Upload photo on articles
- Link articles to a category
- Pagination & infinite scrolling using Inertia & Vue Observer API
- Faker seeds with random unspash image## Run app
```sh
# clone the project and get the right env variables
git clone https://github.com/joffreyverd/blog-app.git
cd blog-app
cp .env.example .env# install dependencies
composer install
npm install# connect public/storage to storage/app/public
php artisan storage:link# create a new database
docker run --rm --name blog_db -e POSTGRES_USER=root -e POSTGRES_PASSWORD=X8iBgconx78qUrUp -p 5432:5432 -d postgres# execute migrations
php artisan migrate# seed the database
php artisan db:seed# run in a term instance
php artisan serve
# run in another term instance
npm run dev# access to the application
http://127.0.0.1:8000
```## Dev cheatsheet
```sh
# project initialization
laravel new blog-app# create models with migration
php artisan make:model Category -m
php artisan make:model Article -m# create controller
php artisan make:controller Api/ArticleController --api --resource --model=Article# create request
php artisan make:request ArticleRequest
# create resource
php artisan make:resource ArticleResource# create seeder
php artisan make:seeder CategoryTableSeeder# create service
php artisan make:class Services/ArticleService# lint with Pint
./vendor/bin/pint
```