An awesome Blog Post React App
App Demo
A React based Mini Content Management System where user can browse posts, view post and create new posts
To get a local copy up and running follow these simple example steps.
- Clone the repo
git clone https://github.com/hamzasajid1995/blog-post.git
- Install NPM packages
npm install
- Start project
npm start
- Navbar can be found on top on screen to navigate to different pages.
- '/Posts' is the home page which will list all the posts. posts are paginated and pagination options can be found on bottom of the screen
- '/Posts/:postId' is the post details page which can be accesed by clicking any post
- '/new-post' is the page which can be used to create new posts
- For routing I'm using react router v6. There is a Layout, which has a navbar and an Outlet for all the nested routes. When deploying to a server we'll use BrowserRouter but for now I'm using HashRouter because app is deployed on Github pages and i can't customize server configs to support BrowserRouter.
- For State management I'm using react-redux with redux-toolkit. I have also added AsyncThunk and EntityAdapter. The state is also Persited in browser LocalStorage