/nextBoilerplate

NEXT BOILERPLATE with OAUTH GITHUB | NEXT.JS && Tailwind CSS && NEXT-AUTH && Shadcn UI

Primary LanguageJavaScript

Next.js Boilerplate with GitHub OAuth Authentication

This repository serves as a boilerplate setup for building web applications using Next.js with OAuth GitHub authentication, Tailwind CSS for styling, NextAuth.js for authentication, and Shadcn UI for UI components.

Features

  • Next.js: React framework for building web applications.
  • Tailwind CSS: Utility-first CSS framework for rapid UI development.
  • NextAuth.js: Authentication library for Next.js applications with built-in support for OAuth providers like GitHub.
  • Shadcn UI: UI components library for React applications, providing pre-designed components for faster development.

Create a .env file and fill in your GitHub OAuth credentials.

GITHUB_CLIENT_ID = ...
GITHUB_CLIENT_SECRET = ...
NEXTAUTH_URL = http://localhost:3000
NEXTAUTH_SECRET = ...
NODE_ENV = development

Install credentials & Run the app

npm install 
npm run dev

Clone this repository:

git clone https://github.com/your-username/nextjs-github-auth-boilerplate.git

Usage

This boilerplate provides a basic setup for integrating GitHub OAuth authentication into your Next.js application. You can extend and customize the functionality according to your project requirements.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests for any improvements or features you'd like to see added.

License

This project is licensed under the MIT License.