The core API service for the AI Web Builder platform, responsible for orchestrating AI interactions and managing project templates.
- Groq AI Integration: Leverages Groq SDK for lightning-fast AI text generation and processing.
- RESTful API: Clean and efficient API endpoints for communication with the frontend.
- Project Bootstrapping: Automated generation of initial project structures and constants.
- CORS Enabled: Configured for secure cross-origin resource sharing with the frontend.
- TypeScript Core: Built with TypeScript for enhanced type safety and maintainability.
- Runtime: Node.js
- Framework: Express.js
- AI SDK: Groq SDK
- Language: TypeScript
- Environment Management: dotenv
- Development Tools: nodemon, ts-node
- Node.js (v18 or higher)
- npm or yarn
- Groq API Key
-
Clone the repository:
git clone https://github.com/shekhar-narayan-mishra/Ai-web-builder-backend.git cd Ai-web-builder-backend -
Install dependencies:
npm install
-
Environment Configuration: Create a
.envfile in the root directory and add your Groq API key:GROQ_API_KEY=your_api_key_here PORT=3000
-
Start the development server:
npm run dev
-
The server will be running at
http://localhost:3000.
src/
├── defaults/ # Initial project templates and configurations
├── constants.ts # Global constants and project settings
├── gemini-config.ts # AI model configurations (Gemini/Groq)
├── index.ts # Main Express server entry point
├── prompts.ts # System prompts for AI generation
└── stripindents.ts # Utility for cleaning up AI-generated responses
This project is licensed under the ISC License.
For questions or support, please open an issue in the repository.