ae7d63db3587469e2577a83886da1e86ef572a9b
Did the following: - Extract front-end from component; - Added localStorage for remembering API details and access key; - Added routing to login component; Todo: - Remove getApi*FromDTO; - Create ProtectedRoute to prevent unauthorized entry to /dashboard;
Available Scripts
In the project directory, you can run:
yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits, you will also see any lint errors in the console.
yarn build
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes. Your app is ready to be deployed!
Requirement list
- Create React web app
- It should have fields for giving start date, end date and access token as arguments to the app.
- App should make HTTP GET request to the API to fetch chat counts between those two given dates.
- The dashboard should render three values from the API.
- The dashboard should render a Paginated List.
Software used
| # | Software | Reason |
|---|
- | React | Requirement.
- | React Router | To route between different components, a react router is used.
- | TypeScript | To make use of the strong types, I made use of TypeScript
- | Bootstrap | To structure the front-end, bootstrap is used.
Description
Languages
TypeScript
90.9%
HTML
3.9%
CSS
3.6%
Dockerfile
1.6%