ship87 / laravel-blog
Example blog on PHP using Laravel framework, JSON:API, Elasticsearch, RabbitMQ.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=7.0.0
- elasticsearch/elasticsearch: ^6.1
- fideloper/proxy: ~3.3
- guzzlehttp/guzzle: 6.*
- laravel/framework: 5.5.*
- laravel/tinker: ~1.0
- laravelcollective/html: 5.5.*
- php-amqplib/php-amqplib: 2.6.*
- unisharp/laravel-filemanager: 1.*
Requires (Dev)
- barryvdh/laravel-debugbar: ^3.2
- filp/whoops: ~2.0
- fzaninotto/faker: ~1.4
- mockery/mockery: ~1.0
- phpunit/phpunit: ~6.0
- symfony/thanks: ^1.0
This package is auto-updated.
Last update: 2024-10-29 05:17:10 UTC
README
Example blog on PHP using Laravel framework, JSON:API, Elasticsearch, RabbitMQ.
This repo is functionality complete — PRs and issues welcome!
Getting started
Installation
Please check the official laravel installation guide for server requirements before you start. Official Documentation
Clone the repository
git clone git@github.com:/ship87/laravel-blog.git
Switch to the repo folder
cd laravel-blog
Install all the dependencies using composer
composer install
Install all the dependencies using npm
npm install
Copy the example env file and make the required configuration changes in the .env file
cp .env.example .env
Generate a new application key
php artisan key:generate
Run the database migrations (Set the database connection in .env before migrating)
php artisan migrate
Start the local development server
php artisan serve
You can now access the server at http://localhost:8000
Start the local development server using docker (PHP-FPM + Xdebug + Nginx)
http://localhost:8070/ - PHP 7.0
http://localhost:8071/ - PHP 7.1
http://localhost:8072/ - PHP 7.2
TL;DR command list
git clone git@github.com:ship87/laravel-blog.git
cd laravel-blog
composer install
npm install
cp .env.example .env
php artisan key:generate
Make sure you set the correct database connection information before running the migrations Environment variables
php artisan migrate
php artisan serve
API Specification
This application adheres to the JSON:API specifications https://jsonapi.org/. This helps mix and match any backend with any other frontend without conflicts.
License
This project is released under the MIT license.