A Next.js 15+ 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 git@github.com:yourusername/gemini-frontend.git
cd gemini-frontendpnpm installYou can also use
npm installoryarn install, butpnpmis recommended.
Create a .env.local file and configure it based on your API keys and settings.
pnpm devStarts the development server with Turbopack enabled.
pnpm buildCompiles the application for production.
pnpm startRuns 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.localgemini-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 developmentgit checkout -b feature-branch-namegit add .
git commit -m "feat: describe your feature"git push origin feature-branch-nameCreate 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! 🚀