Loading repository data…
Loading repository data…
chinxcode / repository
A modern web-based code editor for HTML, CSS, and JavaScript with real-time preview, AI-powered assistance, and easy sharing. Built with Next.js, MongoDB, and Google's Gemini AI.
CodeXeditor is a modern, web-based code editor for HTML, CSS, and JavaScript with real-time preview, AI-powered code assistance, and easy project sharing. Built with Next.js, MongoDB, and Google's Gemini AI, it provides a seamless environment for learning, experimenting, and building web projects.
Create a .env.local file in the root directory with the following variables:
# MongoDB
MONGODB_URI=your_mongodb_connection_string
# NextAuth Configuration
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your_nextauth_secret
# Gemini AI API
GOOGLE_AI_API_KEY=your_gemini_api_key
Clone the repository:
git clone https://github.com/chinxcode/code-editor.git
cd code-editor
Install dependencies:
npm install
Run the development server:
npm run dev
Open http://localhost:3000 in your browser.
/src/components: React components/src/models: MongoDB schema models/src/pages: Next.js pages and API routes/src/service: External API service integrations (Gemini)/src/styles: CSS modules for styling/src/utils: Utility functionsContributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)Connect with me on LinkedIn For questions or feedback, please reach out to sachinxcode@gmail.com or open an issue on GitHub.
Made with ❤️ by Sachin Sharma