Technical test application built with React, Next.js, and TypeScript.
- React framework with Next.js App Router
- Chakra UI v2 for UI components
- Source code written in English
- Internationalized text using i18next (
enandpt) - Two routes:
/homefor user search/profile/[username]for shareable profile links
- Entities modeled with Zod:
- GitHub user schema
- GitHub repository schema
npm run dev: Start development servernpm run build: Build for productionnpm run start: Start production servernpm run lint: Run ESLint
npm install
npm run devTo avoid exposing credentials in the browser, this project uses internal server routes under /api/github/*.
If you want higher GitHub API limits, create a .env.local file at the project root:
GITHUB_TOKEN=your_github_token_hereNotes:
- Keep
GITHUB_TOKENonly in.env.local(never in client code). - Do not commit
.env.local. - Without token, requests still work but are subject to lower anonymous rate limits.
app/home/page.tsxapp/profile/[username]/page.tsxlib/i18n.tslib/schemas/github.tslib/api/github.ts