Clone the project
git clone https://github.com/dhananjayjaiswal16/assignment.git
Go to the project directory
cd assignment
Install dependencies
npm install
Start the server
npm run start
-
src/components/: Has all the component files used across this project
- Contact: Reusable Component for setting user data on user page
- Navbar: Reusable navbar component
- Posts: Reusable component for displaying all posts on user page
- Spinner: Loader component
-
src/pages/
- Login: Login page (/account/login)
- User: User page (/account/user)
- Post: Post page (/account/post/:post_number)
- NotFound
-
src/redux/
- services/: for making api calls
- store: for setting up redux store
- userSlice
React and Redux