A simple blog application using ReactJS as a frontend Javascript Framework. Developed API using PHP Laravel framework with MySQL database to pass data front to back.
- clone project .
- install composer dependencies using
composer install
(of course you need, php and composer . - create
.env
file by copying from.env.example
. - run
php artisan key:generate
command, this will get APP_KEY in.env
file . - create database and fill information in `.env' file .
- now run migrations for creating table
php artisan migrate
. - run
php artisan passport:install
for generating access tokens. - Now run
php artisan db:seed
, for seeding data to the database. - Now run
php artisan optimize:clear
. - For setting base url go to
root/js/bootstrap.js
file, findwindow.axios.defaults.baseURL = 'http://demo-site.test/api'
fill url to call API from backend. - Finally run
npm run dev
which will run your app on local server. - That's It, You can modify and create a pull request, Thanks.
⚡️ Laravel/Passport Authentication.
⚡️ Followed design patterns.
⚡️ Globally Add posts and load more
button to increment 10 posts more.
⚡️ Add comments to the corresponding posts.
⚡️ Show auth user post on profile.
⚡️ Update & Delete auth user post.
⚡️ Manage state with context api and laravel api call.
⚡️ Set protected routes with auth.
⚡️ Show all users list which is shortable(on clicking table head), searchable, with pagination
load users according to the state, clicking user entity redirects to the user profile.
🪓 luxon
🪓 notyf
🪓 axios
🪓 react-bootstrap
🪓 react-js-pagination
🪓 react-router-dom