This is a Next.js template with features like Atom, Redis, Mongoose, authentication (including Discord and Google), and SMTP signup.
Before running the application, make sure to set up the following environment variables:
NEXTAUTH_URL=https://example.com
NEXTAUTH_SECRET=
REDIS_URL=redis://
MONGODB_URL=mongodb+srv://
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
SMTP_FROM=
SMTP_HOST=
SMTP_PORT=465
SMTP_USERNAME=
SMTP_SECURE=
SMTP_PASSWORD=
This template utilizes UI components from Shadcn with additional animated components from Aceternity.
-
Clone the repository:
git clone https://github.com/Gratenes/chance-nextjs-template.git chance-nextjs-template
-
Navigate to the project directory:
cd chance-nextjs-template
-
Install dependencies:
npm install
To run the application, execute the following command:
npm run dev
This will start the development server. Visit `http://localhost:3000\` in your browser to view the application.
Make sure to configure your authentication providers (Discord, Google, SMTP) in their respective dashboards and update the environment variables accordingly.
For more information on Next.js, refer to the Next.js documentation.
Feel free to customize and extend this template as needed for your project!