"Generate a full-stack web application named 'Service Sphere Hub' that connects users with skilled professionals and suppliers. The platform should support direct communication between customers and service providers for various services like electricians, plumbers, maids, and product suppliers (e.g., building materials). It should be user-friendly, easy to navigate, and efficient. The platform should include the following features: Frontend (React.js Tailwind CSS or Bootstrap) Responsive UI with a modern design. Home page with search functionality to find services or professionals. Service provider and product listing pages with filtering and sorting options. User authentication (signup/login) using JWT. Profile dashboard for users and service providers. Booking system to schedule services. Reviews and ratings for service providers. Backend (Node.js Express.js MongoDB or PostgreSQL) RESTful API for handling user authentication, bookings, and payments. Secure user authentication with JWT-based authentication. CRUD operations for service providers, categories, and user profiles. Role-based access (customers, service providers, and admins). Real-time chat functionality for direct communication. Admin panel to manage users, services, and transactions. Database (MongoDB or PostgreSQL) Users table with details (name, email, phone, password, role). Services table (name, description, category, provider details). Orders table for tracking bookings. Reviews table for user feedback and ratings. Additional Features Payment gateway integration (Stripe, Razorpay, or PayPal). Notification system for booking confirmations and updates. Image upload for service provider portfolios. SEO-friendly design with metadata handling. Deployment setup with Vercel/Netlify (Frontend) and Render/Railway (Backend). Generate all nec
develop the code
I'll create a full-stack application using Next.js with the App Router, which will allow us to build both the frontend and backend in a single codebase. We'll use Tailwind CSS for styling, MongoDB for the database, and NextAuth.js for authentication.
The Service Sphere Hub application I've created is a full-stack platform that connects users with skilled professionals and suppliers. Here's a breakdown of the key features:
Modern UI with Responsive Design
User Authentication
Home Page
Dashboard
Service Listings
API Routes
Database Models
Authentication
Add Payment Integration
Implement Real-time Chat
Add Service Provider Profiles
Enhance Admin Panel
Implement Notification System
To deploy this application:
Set Up Environment Variables
MONGODB_URI=your_mongodb_connection_string
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=your_app_url
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
Deploy to Vercel
Post-Deployment Setup
Mobile App
Advanced Search
Service Provider Verification
Subscription Model
Analytics and Reporting
This full-stack application provides a solid foundation for a service marketplace platform that can be extended with additional features as your business grows.
Please make sure to add the following environment variables to your project: