Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmsrs/blog
Blog system writteln in Laravel
https://github.com/cmsrs/blog
Last synced: 11 days ago
JSON representation
Blog system writteln in Laravel
- Host: GitHub
- URL: https://github.com/cmsrs/blog
- Owner: cmsrs
- License: mit
- Created: 2023-10-02T15:54:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-07T18:23:27.000Z (about 1 year ago)
- Last Synced: 2023-10-07T19:41:29.163Z (about 1 year ago)
- Language: PHP
- Size: 165 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BLOG
Blog System in Laravel
# INSTALLATION
download
```bash
git clone https://github.com/cmsrs/blog.git
cd blog
```install php dependency
```bash
composer install
```set up database in .env file, you can also add EXTERNAL_API, for example:
```bash
EXTERNAL_API="https://candidate-test-rs.com/api.php"
```install js dependency
```bash
npm install
npm run dev
```migrate data
```bash
php artisan migrate
```create admin [email protected] with password: secret123
```bash
php artisan app:create-admin [email protected] secret123
```start server
```bash
php artisan serve
```# RUN TESTS
set up database in .env.testing file
```bash
./vendor/bin/phpunit
```# To improve performance, I implemented the following features:
* Utilize pagination data in the user zone.
* Implement 'eager loading' to retrieve frontend data.
* Create an index on the 'publication_date' database column.
* Employ caching to display frontend data.
* Utilize pagination data on the frontend site.# How it works
https://www.youtube.com/watch?v=KKaltI1aRgw