Skip to content

Latest commit

 

History

History
executable file
·
65 lines (47 loc) · 1.6 KB

README.md

File metadata and controls

executable file
·
65 lines (47 loc) · 1.6 KB

Simple Laravel Blog

Post, Comment and Authentication

Requirements

Laravel php MySql NodeJs NPM

Installation steps

1. Clone the repository

git clone https://github.com/deva7mad/simple-blog.git

2. Configure the database connection

cd simple-blog/

composer install

cp .env.example .env

php artisan key:generate

Then Add your database config to .env

3. Running Migration

php artisan migrate --seed

This will seed the database with 30 posts and for each post 5 comments each comment associated with a user.

4. Storage Link

php artisan storage:link

5. Run the app

npm install && npm run dev
OR
npm install && npm run build

php artisan serve

You can access dashboard with any generated user email and password will be (password)

6. Test the app with (UnitTest)

php artisan test --coverage

7. Generate a dashboard to monitor test coverage

vendor/bin/phpunit --coverage-html reports/

Make sure to enable XDEBUG