In this project, you can:
- Find repos of specific user.
- Get basic data of the repo.
- Search users with username.
Breakpoints are set to offer appropriate user experience for users using any device.
Click on the Moon button to switch from dark/light mode.
Fetch 10 data per time, when the user scroll to the bottom.
When already got all the data, stop sending request.
Type into the search field, press enter
/ click on search icon to search.
Infinite Scroll is supported here, too.
Animation applied on each page and loading process.
-
Wrong Page Route
Return NotFound Page. -
Not Authenticated
Return Error403 Page with instruction on the page. -
User Not Found
Return Error with the status code(404) and details. -
Search with Zero Result
Show details. -
Others
Return Error with the status code and the error message.
This project has deployed on Github Page.
Follow the following steps to build up the necessary environment and run the app.
Note: If not doing so, you may encounter a 403
error.
Add Your Github Token in .env
file at the root of the project.
You can refer to .env.example
file.
Run this script to install necessary node_modules automatically.
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.