Skip to content

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


🎯 Preview Access

Preview Code: dprks99

Use this code to access the platform preview and test AI website generation features.


πŸš€ 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

AWS Services Used

Our platform leverages 20+ AWS services for a fully serverless, scalable architecture:

Core Compute & Hosting

  • AWS Amplify - Frontend hosting and CI/CD
  • AWS Lambda - 46 serverless functions across all services
  • Amazon EC2 (Elastic Compute Cloud) - Reserved for future scaling needs
  • AWS CloudFormation - Infrastructure as Code (IaC) for automated deployments

AI & Machine Learning

  • Amazon Bedrock - AI model hosting and inference
    • Claude Sonnet 4 (Primary text generation)
    • Nova Pro & Lite (Fallback models)
    • Nova Canvas (Image generation)

API & Networking

  • Amazon API Gateway - 5 REST API gateways for microservices
  • Amazon CloudFront - Global CDN for fast content delivery
  • Amazon Route 53 - DNS management and custom domain routing
  • AWS Data Transfer - Cross-region and internet data transfer

Storage & Database

  • Amazon DynamoDB - 7 NoSQL tables for real-time data
  • Amazon S3 (Simple Storage Service) - 8 buckets for assets and websites
  • AWS Glue - ETL jobs for data transformation and analytics

Security & Authentication

  • Amazon Cognito - User authentication and authorization
  • AWS Key Management Service (KMS) - Encryption key management
  • AWS Secrets Manager - Secure credential storage

Monitoring & Operations

  • Amazon CloudWatch - Logging, metrics, and monitoring
  • Amazon X-Ray - Distributed tracing and performance analysis
  • Amazon Simple Notification Service (SNS) - Event notifications
  • Amazon Simple Queue Service (SQS) - Message queuing for async processing

Additional Services

  • Amazon Virtual Private Cloud (VPC) - Network isolation and security

Tech Stack

Frontend:

  • Next.js 14 (React 18)
  • TypeScript
  • Tailwind CSS
  • React Query
  • Hosted on AWS Amplify

Backend:

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

AI Services:

  • AWS Bedrock (Claude Sonnet 4, Nova Pro/Lite, Nova Canvas)
  • Multi-model fallback system
  • Structured content generation

Database & Storage:

  • Amazon DynamoDB (7 tables, on-demand capacity)
  • Amazon S3 (8 buckets, versioning enabled)
  • Amazon CloudFront (Global CDN)

Authentication:

  • Amazon Cognito User Pools
  • Google OAuth 2.0
  • OTP-based login
  • JWT tokens

Payment:

  • Razorpay API
  • Subscription management
  • Webhook handling

πŸ“ 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

Complete AWS Services Breakdown

Service Purpose Region Details
AWS Amplify Frontend hosting & CI/CD Global Next.js app deployment, automatic builds
Amazon API Gateway REST APIs eu-north-1 5 gateways for microservices
Amazon Bedrock AI model hosting us-east-1, ap-southeast-1 Claude, Nova models
AWS CloudFormation Infrastructure as Code eu-north-1 Automated stack deployments
Amazon CloudFront Global CDN Global Edge Website delivery, caching
Amazon CloudWatch Monitoring & Logging eu-north-1 Metrics, logs, alarms
Amazon Cognito Authentication eu-north-1 User pools, identity federation
AWS Data Transfer Network traffic Global Cross-region, internet egress
Amazon DynamoDB NoSQL Database eu-north-1 7 tables, on-demand capacity
Amazon EC2 Compute (reserved) eu-north-1 Future scaling capacity
AWS Glue ETL & Data Processing eu-north-1 Data transformation jobs
AWS Key Management Service Encryption eu-north-1 Key management, data encryption
AWS Lambda Serverless Functions eu-north-1 46 functions across services
Amazon Route 53 DNS Management Global Custom domain routing
Amazon S3 Object Storage eu-north-1 8 buckets, versioning enabled
AWS Secrets Manager Credential Storage eu-north-1 API keys, database credentials
Amazon SNS Notifications eu-north-1 Event-driven messaging
Amazon SQS Message Queuing eu-north-1 Async task processing
Amazon VPC Network Isolation eu-north-1 Private networking, security
Amazon X-Ray Distributed Tracing eu-north-1 Performance analysis

Primary Region: Europe (Stockholm) eu-north-1
AI Region: US East (N. Virginia) us-east-1 & Asia Pacific (Singapore) ap-southeast-1


πŸ§ͺ 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

 
 
 

Contributors