This project was bootstrapped with Create React App.
- Clone the repo using git clone https://github.com/piyusha1807/infracloud.git
- use node(v14.16.0) and npm(6.14.11)
- npm install
- npm start
- Open http://localhost:3000 to view it in the browser.
- Taking username first time using modal and store in session storage.
- Making a get call to get list of post and sending username in request headers.
- Storing the reponse of posts api in redux store and show in posts table.
- If user wants to see comments of any posts have to click on view button and comments drawer will open.
- At the time of clicking on view button comments api will call using posts id and store in redux store.
- Comments component will call the state and show data in comments table.
- compoents => This folder contains a MUI grid Table component that is using inside posts and comments component.
- layout => This folder is default layout of page that contains navbar and modal for taking username.
- pages => This folder contains post and comments component.
- redux => This folder containes actions, reducers, services and store.
- uitls => utils have axios interpreter.