/next-view-repo

A GitHub OAuth application built with Next.js and NextAuth.js (Auth.js) for seamless GitHub authentication.

Primary LanguageTypeScript

GitHub OAuth App with Next.js

A GitHub OAuth integration built using Next.js, NextAuth.js, and Tailwind CSS. This app allows users to authenticate with their GitHub accounts and view a list of their repositories. Each repository entry includes:

  • Repository name
  • Last updated date
  • Repository owner
  • Download option as a zip file

Features

  • GitHub OAuth login with NextAuth.js
  • List of repositories with details and download option
  • Middleware for protecting routes
  • Seamless redirection based on authentication state
  • Styled with Tailwind CSS for a responsive design

Technologies Used

  • Next.js
  • NextAuth (Auth.js v5)
  • GitHub OAuth Provider
  • Tailwind CSS
  • TypeScript

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:4800 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.