Skip to content

shekhar-narayan-mishra/Ai-web-builder-backend

Repository files navigation

AI Web Builder - Backend

The core API service for the AI Web Builder platform, responsible for orchestrating AI interactions and managing project templates.

Features

  • 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.

Tech Stack

Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn
  • Groq API Key

Installation

  1. Clone the repository:

    git clone https://github.com/shekhar-narayan-mishra/Ai-web-builder-backend.git
    cd Ai-web-builder-backend
  2. Install dependencies:

    npm install
  3. Environment Configuration: Create a .env file in the root directory and add your Groq API key:

    GROQ_API_KEY=your_api_key_here
    PORT=3000
  4. Start the development server:

    npm run dev
  5. The server will be running at http://localhost:3000.

Project Structure

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

License

This project is licensed under the ISC License.

Contact

For questions or support, please open an issue in the repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors