This is another search engine to read GitHub users information
Enter GitHub username and search users matching the input like Google Search, click avatars to view more details, including repositories, followers and following.
Pages include:
- HomePage / - A search bar to find users
- UserPage /user/[username] - User information on GitHub, currently showing at most 100 items in repositories, followers & following.
- React: 17.0
- Next.js: 10.0
- TypeScript: 4.0
- emotion: 11.1
- Framer Motion: 3.1
- Chakra UI: 1.0
- Redux Toolkit: 1.5
- jest: 26.6
Current local version:
- Redis: 3.12
- Docker: 20.10
- docker-compose: 1.27
After cloning the repository, please copy the sample env .env.local.sample
and change it to .env.local
, then update GitHub Access Token
(More info can be found here)
cp .env.local.sample .env.local
First, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
First bundle and build the application:
npm run build
After a successful build, run the production server:
npm run start
Open http://localhost:3000 with your browser to see the result.
For better performance and persistency, we can use Redis in docker-compose by updating .env.local
ENABLE_REDIS=true
REDIS_HOST=redis
Build and start the services by
docker-compose build
docker-compose up -d