lloople / blog
Simple blog with markdown.
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 1
Open Issues: 1
Type:project
Requires
- php: >=7.0.0
- algolia/algoliasearch-client-php: ^1.23
- fideloper/proxy: ~3.3
- laravel/framework: 5.5.*
- laravel/scout: ^3.0
- laravel/tinker: ~1.0
- lloople/laravel-notificator: ^1.5
Requires (Dev)
- filp/whoops: ~2.0
- fzaninotto/faker: ~1.4
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2020-01-23 18:16:01 UTC
README
Backend
Logging in
- url: /backend
- default user: admin@blog.test / admin
There's no interface for changing user's information yet. You can change user's password using tinker
$ php artisan tinker > $user = App\Models\User::find(1); > $user->password = bcrypt('newPassword'); > $user->save();
Posts Content
The body of the posts are saved in markdown. Laravel uses Erusev's Parsedown package to transform it into HTML. Backend UI uses SimpleMDE to show a friendly markdown editor
Tables
All list tables were made using Spatie's Vue Table Component package. Pagination and search are server-side
Changing theme
Main app colors are defined by Tailwind CSS colors.
You can manage themes from the backend on backend/themes
. Only one theme can be active at a time.
Frontend
Posts List
In order to see a post, it must be visible
and publish_date
must be in past.
Algolia's Search (currently untested)
There's a box on the top-right corner for searching posts that uses algolia instant search javascript component.
You can define your Algolia credentials in the .env
file.
Featured posts
A featured post is visible from anywhere on the frontend UI. It's showed on the sidebar present in any page. It must be published and visible as well.
Inspiration
When I got stuck developing this project, I used Freek Van Der Herten's blog to find a way to solve the problem or inspiration for future features. Thanks for sharing it! 👍