This is a full-stack web application built with React and Node.js that allows users to sign in using GitHub authentication and fetch their GitHub profile information, including their avatar and repositories. The app uses the GitHub API for seamless integration and data retrieval.
- GitHub Authentication: Sign in securely with GitHub.
- Profile Display: View your GitHub username, avatar, and repositories.
- Search Functionality: Search for repositories or issues from your GitHub account.
- Modern UI: Built using React and Tailwind CSS for a clean and responsive design.
git clone https://github.com/your-username/github-api-integration-app.git
cd github-api-integration-app- for the backend
cd server
npm install- For the frontend:
cd client
npm install- Create a .env file in the backend directory (server/) and configure the following:
PORT=<port>
GITHUB_CLIENT_ID=<your-github-client-id>
GITHUB_CLIENT_SECRET=<your-github-client-secret>- To get your GitHub Client ID and Client Secret, create an OAuth App on GitHub by following these instructions.
cd server
npm start- This will start the backend server on port 3001 by default. To change the port, modify the PORT value in the .env file or directly in the server code.
cd client
npm run dev- This will start the React development server on port 3000 by default.
- Visit http://localhost:3000 in your browser.