A simple blog for demonstration purpose based on Laravel 7.0 Framework.
Requirements
- Laravel 7.0
- PHP >= 7.2.5
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Ctype PHP Extension
- JSON PHP Extension
- BCMath PHP Extension
Demo
You can try the live demo : http://gentle-everglades-40337.herokuapp.com/
Demo login info
user: contact@milon.im | password: password
Installation
git clone https://github.com/milon/laravel-blog.git blog
cd blog
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate
php artisan db:seed
If you want dummy data, then run this-
php artisan db:seed --class=DummyDataSeeder
API Endpoints
This projects exposes some API endpoints. You could request those endpoints with the api_token
passed as query parameters, like this- /api/tags?api_token=YOUR_API_KEY
. You can also pass the token as a Authorization Bearer token. The API key could be obtained from /api/auth/token
endpoint. Available endpoints are-
/api/auth/token
/api/auth/reset-password
/api/auth/change-password
/api/tags
/api/categories
/api/users // only accessible by admin
/api/posts
These endpoints are also available as a Postman collection here.
Author
Feel free to email me, if you have any question.
from https://github.com/milon/laravel-blog
No comments:
Post a Comment