Skip to content

AI-powered, serverless platform enabling digital transformation for Indian businesses, built by WebDPro Solutions Private Limited.

License

Notifications You must be signed in to change notification settings

webdpro-in/webdproai

Repository files navigation

WEBDPRO AI - AI-Powered E-Commerce Platform

Transform business ideas into fully functional e-commerce websites in minutes using AI

License: MIT Node.js AWS Next.js


πŸš€ What is WEBDPRO AI?

WEBDPRO AI is a prompt-to-ecommerce SaaS platform developed by Webdpro Solutions Private Limited that leverages AWS Bedrock AI to generate complete online stores from natural language descriptions. Simply describe your business, and get a fully functional e-commerce website in 2-3 minutes.

✨ Key Features

  • πŸ€– AI-Powered Generation - Claude 3.5 Sonnet for intelligent code generation
  • 🎨 Custom Design - Tailwind CSS with brand-specific styling
  • πŸ–ΌοΈ AI Images - Amazon Titan for product and hero images
  • πŸ” Secure Authentication - AWS Cognito with OTP and Google OAuth
  • πŸ’³ Payment Integration - Razorpay for seamless transactions
  • πŸ“¦ Inventory Management - Real-time stock tracking and alerts
  • 🚚 Delivery Tracking - Order fulfillment and GPS tracking
  • πŸ“Š Analytics Dashboard - Business insights and metrics
  • 🌐 Custom Domains - Connect your own domain with SSL

πŸ—οΈ Architecture

Tech Stack

Frontend:

  • Next.js 14 (React 18)
  • TypeScript
  • Tailwind CSS
  • React Query

Backend:

  • AWS Lambda (Serverless)
  • Node.js 18+ / 20.x
  • TypeScript
  • Serverless Framework

AI Services:

  • AWS Bedrock (Claude 3.5 Sonnet, Titan Image Generator)
  • Multi-model fallback system

Database & Storage:

  • Amazon DynamoDB (7 tables)
  • Amazon S3 (8 buckets)
  • Amazon CloudFront (CDN)

Authentication:

  • Amazon Cognito
  • Google OAuth 2.0
  • OTP-based login

Payment:

  • Razorpay API
  • Subscription management

πŸ“ Project Structure

webdproAI/
β”œβ”€β”€ frontend/              # Next.js web application
β”œβ”€β”€ backend/               # Core API & authentication
β”œβ”€β”€ ai_services/           # AI generation pipeline
β”œβ”€β”€ inventory/             # Product & stock management
β”œβ”€β”€ payments/              # Payment processing
β”œβ”€β”€ delivery/              # Order fulfillment
β”œβ”€β”€ orders/                # Order management
β”œβ”€β”€ .env.template          # Environment variables template
└── README.md              # This file

πŸš€ Quick Start

Prerequisites

  • Node.js 18 or higher
  • AWS Account with Bedrock access
  • AWS CLI configured
  • Serverless Framework installed globally

Installation

  1. Clone the repository
git clone https://github.com/webdpro-in/webdproai.git
cd webdproai
  1. Install dependencies
npm install
cd backend && npm install
cd ../ai_services && npm install
cd ../frontend && npm install
cd ../inventory && npm install
cd ../payments && npm install
cd ../delivery && npm install
cd ..
  1. Configure environment variables

Copy .env.template to .env in each service folder and fill in your values:

# Example for backend/.env
AWS_REGION=eu-north-1
AWS_ACCOUNT_ID=your-account-id
DYNAMODB_TABLE_PREFIX=webdpro

⚠️ Important: Never commit .env files. Use .env.template for reference only.

  1. Enable AWS Bedrock Models

Go to AWS Console β†’ Bedrock β†’ Model Access and enable:

  • Claude 3.5 Sonnet
  • Claude 3 Haiku
  • Amazon Titan Image Generator
  1. Deploy backend services
# Deploy backend
cd backend
npx serverless deploy --stage dev --region eu-north-1

# Deploy AI services
cd ../ai_services
npx serverless deploy --stage dev --region eu-north-1

# Deploy other services
cd ../inventory && npx serverless deploy --stage dev --region eu-north-1
cd ../payments && npx serverless deploy --stage dev --region eu-north-1
cd ../delivery && npx serverless deploy --stage dev --region eu-north-1
  1. Update frontend configuration

Copy the deployed API URLs to frontend/.env.local

  1. Start the frontend
cd frontend
npm run dev
  1. Open your browser

Visit http://localhost:3000


πŸ”§ Configuration

Environment Variables

Each service requires its own .env file. Use .env.template as a reference.

πŸ”’ Security: All .env files are gitignored. Never commit credentials to version control.


🎯 How It Works

AI Generation Pipeline (4 Stages)

1. Spec Generation (10s)
   Input:  "Create a shoe store in Delhi"
   Output: JSON specification with products, colors, layout
   Model:  Claude 3.5 Sonnet

2. Code Generation (15s)
   Input:  JSON spec
   Output: React components + Tailwind CSS
   Model:  Claude 3.5 Sonnet with Haiku fallback

3. Image Generation (20s)
   Input:  Business type + product descriptions
   Output: Hero images, product images
   Model:  Amazon Titan Image Generator

4. Website Assembly (5s)
   Input:  Code + Images
   Output: Deployed website on S3 + CloudFront

Total Time: ~50 seconds from prompt to live website


πŸ“Š AWS Infrastructure

Lambda Functions (46)

Our serverless architecture consists of 46 Lambda functions across all services:

Backend Service (19 functions):

  • Authentication & User Management
  • Store CRUD Operations
  • Order Management
  • Domain Configuration
  • Cognito Triggers

AI Services (5 functions):

  • Spec Generation
  • Code Generation
  • Image Generation
  • Website Assembly
  • Health Check

Inventory Service (8 functions):

  • Product Management
  • Stock Tracking
  • Low Stock Alerts
  • Demand Prediction
  • Event Handling

Payments Service (6 functions):

  • Order Checkout
  • Subscription Management
  • Merchant Onboarding
  • Webhook Handling

Delivery Service (8 functions):

  • Order Assignment
  • Status Tracking
  • Cash Collection
  • GPS Tracking

DynamoDB Tables (7)

Table Name Partition Key Sort Key Purpose
webdpro-delivery delivery_id (S) - Delivery tracking and agent assignments
webdpro-orders order_id (S) - Order management and processing
webdpro-payments payment_id (S) - Payment transactions and subscriptions
webdpro-products store_id (S) product_id (S) Product catalog and inventory
webdpro-stores tenant_id (S) store_id (S) Store information and configuration
webdpro-tenants tenant_id (S) - Multi-tenancy management
webdpro-users phone (S) - User authentication and profiles

Region: Europe (Stockholm) eu-north-1
Capacity Mode: On-demand

S3 Buckets (8)

Core Services (Serverless Deployment):

  • webdpro-backend-dev-serverlessdeploymentbucket-* - Backend service deployment
  • webdpro-ai-services-dev-serverlessdeploymentbucket-* - AI services deployment
  • webdpro-inventory-dev-serverlessdeploymentbucket-* - Inventory service deployment
  • webdpro-payments-dev-serverlessdeploymentbucket-* - Payments service deployment
  • webdpro-delivery-dev-serverlessdeploymentbucket-* - Delivery service deployment

Application Storage:

  • webdpro-ai-storage-dev - AI models, temp files, and outputs
  • webdpro-assets-dev - Static assets, images, and generated sites
  • webdpro-websites-dev - Website generation and hosting resources

Region: Europe (Stockholm) eu-north-1

Other AWS Services

Service Purpose
Amazon Bedrock AI model hosting (us-east-1)
Amazon CloudFront Global CDN
Amazon Cognito User authentication
Amazon SNS Event notifications
Amazon EventBridge Event routing
AWS ACM SSL certificates
Amazon API Gateway REST APIs (5 gateways)
AWS CloudWatch Logging & monitoring

πŸ§ͺ Testing

Run Backend Tests

cd backend
npm test

Run Property-Based Tests

cd backend
npm run test:property

Test AI Generation

curl -X POST <AI_SERVICE_URL>/generate/website \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Create a shoe store in Delhi",
    "userId": "test-user-123"
  }'

πŸ“ˆ Development Status

Component Status Completion
Authentication βœ… Working 95%
AI Generation βœ… Working 85%
Store Management βœ… Working 90%
Inventory βœ… Working 90%
Orders βœ… Working 90%
Payments ⚠️ Mock 60%
Delivery ⚠️ Partial 50%
Frontend βœ… Working 90%

Overall: 88% Complete


πŸ›£οΈ Roadmap

Phase 1: Core Features (Current)

  • AI-powered website generation
  • User authentication
  • Store management
  • Inventory tracking
  • Order management
  • Payment integration (in progress)

Phase 2: Advanced Features

  • Custom domain automation
  • Email notifications (SES)
  • Advanced analytics
  • Multi-language support
  • Mobile app

Phase 3: Scale & Optimize

  • Performance optimization
  • Load testing
  • Security audit
  • Rate limiting
  • Monitoring & alerts

🀝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow TypeScript best practices
  • Write tests for new features
  • Update documentation
  • Keep commits atomic and descriptive

οΏ½ License

This project is licensed under the MIT License - see the LICENSE file for details.


🏒 About Webdpro Solutions Private Limited

WEBDPRO AI is developed and maintained by Webdpro Solutions Private Limited, a technology company focused on empowering small businesses with AI-powered e-commerce solutions.

Our Mission

To democratize e-commerce by making it accessible and affordable for every small business in India through cutting-edge AI technology.

Contact Us


πŸ™ Acknowledgments

  • AWS Bedrock for AI capabilities
  • Anthropic Claude for code generation
  • Amazon Titan for image generation
  • Serverless Framework for infrastructure
  • Next.js team for the amazing framework

πŸ“ž Support

For issues, questions, or feature requests:


🌟 Star History

If you find this project useful, please consider giving it a star ⭐


Built with ❀️ by Webdpro Solutions Private Limited

Empowering small businesses with AI-powered e-commerce solutions


Β© 2026 Webdpro Solutions Private Limited. All rights reserved.

About

AI-powered, serverless platform enabling digital transformation for Indian businesses, built by WebDPro Solutions Private Limited.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •