A Next.js 13+ frontend for a chatbot, featuring authentication, markdown support, and syntax highlighting.
You can access the live deployment here:
Gemini Frontend Chat on Vercel
Gemini Frontend Chat is a Next.js 13+ application built with TypeScript. It integrates NextAuth.js for authentication, supports Markdown, and provides syntax highlighting.
- 🔑 NextAuth.js authentication with MongoDB.
- 🎨 Tailwind CSS for modern styling.
- 📝 Markdown support with
react-markdown
. - 🌟 Syntax highlighting via
highlight.js
. - ⚡ Turbocharged Next.js 13+ frontend.
git clone [email protected]:yourusername/gemini-frontend.git
cd gemini-frontend
pnpm install
You can also use
npm install
oryarn install
, butpnpm
is recommended.
Create a .env.local
file and configure it based on your API keys and settings.
pnpm dev
Starts the development server with Turbopack enabled.
pnpm build
Compiles the application for production.
pnpm start
Runs the built application.
Environment variables are stored in .env.local
. A sample configuration is provided in .env.example
.
To set up your environment, copy .env.example
and rename it to .env.local
:
cp .env.example .env.local
gemini-frontend/
│── app/ # Main Next.js app directory
│── public/ # Static assets
│── styles/ # Global styles
│── components/ # Reusable UI components
│── lib/ # Utility functions
│── pages/ # API routes and page components (if applicable)
│── .env.local # Environment variables (ignored in Git)
│── package.json # Dependencies and scripts
│── tsconfig.json # TypeScript configuration
│── tailwind.config.js # Tailwind CSS configuration
│── next.config.ts # Next.js configuration
│── README.md # Documentation
We welcome contributions! Please follow these steps:
git checkout development
git pull origin development
git checkout -b feature-branch-name
git add .
git commit -m "feat: describe your feature"
git push origin feature-branch-name
Create a Pull Request (PR) on GitHub, targeting the development
branch.
MIT License – Feel free to modify and use this project.
This README is structured and tailored for your **Next.js frontend project** with authentication and markdown support. Let me know if you'd like any modifications! 🚀