Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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