All Projects → guillaumebriday → Laravel Blog

guillaumebriday / Laravel Blog

Licence: mit
Laravel 8.0 blog application with Vue.js, Homestead, Horizon, Telescope and Pusher

Projects that are alternatives of or similar to Laravel Blog

Totoval
An out-of-the-box artisan API web-framework written in go.
Stars: ✭ 110 (-91.19%)
Mutual labels:  api, redis, laravel
Coyote
4programmers.net
Stars: ✭ 61 (-95.11%)
Mutual labels:  webpack, redis, laravel
Laravel Vue
运用laravel5.4 + vue2.0 + elementui
Stars: ✭ 276 (-77.88%)
Mutual labels:  webpack, redis, laravel
Pychat
webchat via WebSockets/WebRTC that allows messaging/video call/screen sharing
Stars: ✭ 152 (-87.82%)
Mutual labels:  webpack, redis, websockets
Jikan Rest
The REST API for Jikan
Stars: ✭ 200 (-83.97%)
Mutual labels:  api, redis, laravel
Cms
Decoupled CMS for any Laravel app, gain control of: pages, blogs, galleries, events, images, custom modules and more.
Stars: ✭ 498 (-60.1%)
Mutual labels:  api, blog, laravel
Oneblog
👽 OneBlog,一个简洁美观、功能强大并且自适应的Java博客
Stars: ✭ 678 (-45.67%)
Mutual labels:  blog, redis, websockets
React Cool Starter
😎 🐣 A starter boilerplate for a universal web app with the best development experience and a focus on performance and best practices.
Stars: ✭ 1,083 (-13.22%)
Mutual labels:  webpack, best-practices
Response Xml
The missing XML support for Laravel's Response class.
Stars: ✭ 56 (-95.51%)
Mutual labels:  api, laravel
Www.broqiang.com
个人博客,已经使用新的博客 https://github.com/broqiang/mdblog 此博客不再更新维护
Stars: ✭ 60 (-95.19%)
Mutual labels:  blog, laravel
Ghosttheme Stockholm
👻 📝 ✨ Clean Ghost theme with advanced features & customization.
Stars: ✭ 67 (-94.63%)
Mutual labels:  webpack, blog
Dreamfactory
DreamFactory API Management Platform
Stars: ✭ 1,148 (-8.01%)
Mutual labels:  api, laravel
Laravel Api Boilerplate Jwt
A Laravel 5.8 API Boilerplate to create a ready-to-use REST API in seconds.
Stars: ✭ 1,155 (-7.45%)
Mutual labels:  api, laravel
Photo Blog
The Photo Blog Application based on Laravel 5 and Vue.js 2 + Prerender
Stars: ✭ 55 (-95.59%)
Mutual labels:  redis, laravel
Lumen Api Starter
Quickstarter for Lumen
Stars: ✭ 54 (-95.67%)
Mutual labels:  api, laravel
Laravel admin api
基于laravel5.5开发的基础后台管理脚手架, RBAC权限控制; 接口基于dingo/api和tymon/jwt, 可在此基础上完成你的laravel项目
Stars: ✭ 59 (-95.27%)
Mutual labels:  api, laravel
Django Channels React Multiplayer
turn based strategy game using django channels, redux, and react hooks
Stars: ✭ 52 (-95.83%)
Mutual labels:  redis, websockets
Socketshark
A WebSocket message router based on Python/Redis/asyncio
Stars: ✭ 51 (-95.91%)
Mutual labels:  redis, websockets
Rubel
Rubel is a cms built with Laravel and React.
Stars: ✭ 70 (-94.39%)
Mutual labels:  webpack, laravel
Dark Sky Api
PHP Library for the Dark Sky API.
Stars: ✭ 70 (-94.39%)
Mutual labels:  api, laravel

Laravel 8.0 blog

Build Status Donate

The purpose of this repository is to show good development practices on Laravel as well as to present cases of use of the framework's features like:

Beside Laravel, this project uses other tools like:

Some screenshots

You can find some screenshots of the application on : https://imgur.com/a/Jbnwj

Installation

Development environment requirements :

Setting up your development environment on your local machine :

$ git clone https://github.com/guillaumebriday/laravel-blog.git
$ cd laravel-blog
$ cp .env.example .env
$ composer install
$ vagrant up
$ vagrant ssh

All following commands must be run inside the VM:

$ cd code
$ yarn install
$ artisan key:generate
$ artisan horizon:install
$ artisan telescope:install
$ artisan storage:link

Now you can access the application via http://localhost:8000.

There is no need to run php artisan serve. PHP is already running in the dedicated virtual machine.

Before starting

You need to run the migrations with the seeds :

$ artisan migrate --seed

This will create a new user that you can use to sign in :

email: [email protected]
password: 4nak1n

And then, compile the assets :

$ yarn dev # or yarn watch

Starting job for newsletter :

$ artisan tinker
> PrepareNewsletterSubscriptionEmail::dispatch();

Useful commands

Seeding the database :

$ artisan db:seed

Running tests :

$ ./vendor/bin/phpunit --cache-result --order-by=defects --stop-on-defect

Running php-cs-fixer :

$ ./vendor/bin/php-cs-fixer fix --config=.php_cs --verbose --dry-run --diff

Generating backup :

$ artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
$ artisan backup:run

Generating fake data :

$ artisan db:seed --class=DevDatabaseSeeder

Discover package

$ artisan package:discover

In development environnement, rebuild the database :

$ artisan migrate:fresh --seed

Accessing the API

Clients can access to the REST API. API requests require authentication via token. You can create a new token in your user profile.

Then, you can use this token either as url parameter or in Authorization header :

# Url parameter
GET http://laravel-blog.app/api/v1/posts?api_token=your_private_token_here

# Authorization Header
curl --header "Authorization: Bearer your_private_token_here" http://laravel-blog.app/api/v1/posts

API are prefixed by api and the API version number like so v1.

Do not forget to set the X-Requested-With header to XMLHttpRequest. Otherwise, Laravel won't recognize the call as an AJAX request.

To list all the available routes for API :

$ artisan route:list --path=api

Contributing

Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.

License

This project is released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].