Skip to content

A blog simple web application using ReactJS & Laravel API.

Notifications You must be signed in to change notification settings

Zubayer94/TechBlog

Repository files navigation

sample-image

TechBlog

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.

Built With

Install and Run

  • 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, find window.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.

Features

⚡️ 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.


Technologies used 🛠️

🪓 luxon
🪓 notyf
🪓 axios
🪓 react-bootstrap
🪓 react-js-pagination
🪓 react-router-dom

About

A blog simple web application using ReactJS & Laravel API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published