This Next.js project provides a complete setup for starting a new project with authentication using Clerk, styling with Shadcn UI and Tailwind CSS, and additional features such as video uploading with support for m3u8 and HLS format URLs. The project includes various reusable components for enhanced user interface and experience.
FadeIn
: Component for fade-in animation.SlideIn
: Component for slide-in animation.Container
: Wrapper for responsive layout.PopupModal
: Modal component with transition effects using Headless UI and Lucide icons.Clone the repository:
git clone https://github.com/Baibhav-malaviya/next-auth-setup.git
cd next-auth-setup
Install dependencies:
npm install
# or
yarn install
Create a .env.test
file in the root directory and add your environment variables. For example:
# cloudinary secret
CLOUDINARY_CLOUD_NAME=""
CLOUDINARY_API_KEY=""
CLOUDINARY_API_SECRET=""
# clerk secret
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=""
CLERK_SECRET_KEY=""
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
Run the development server:
npm run dev
# or
yarn dev
Open your browser and navigate to http://localhost:3000
.
FadeIn
A component that applies a fade-in animation to its children. This is useful for smooth, gradual content visibility.
import FadeIn from "./components/FadeIn";
// Usage
<FadeIn>
<p>Your content here</p>
</FadeIn>;