A minimal, working demonstration of the BSM Platform featuring authentication and welcome functionality. This represents 15% of the full BSM Platform capabilities.
- Authentication: Email/password and Google OAuth login
- Welcome Page: Personalized welcome message after login
- Supabase Integration: Real-time authentication with your Supabase backend
- Responsive Design: Modern UI with Tailwind CSS
- TypeScript Support: Type-safe development
- User authentication (login/signup)
- Google OAuth integration
- Welcome dashboard
- User profile display
- Responsive design
- Supabase backend integration
- Customer Portal (tickets, services, ratings)
- Admin Dashboard (analytics, workflows, knowledge base)
- Workflow Builder with AI integration
- Knowledge Base management
- Integrations management
- Advanced ticket management
- Rules engine
- AI-powered features
npm installCreate a .env.local file in the root directory:
# Supabase Configuration
NEXT_PUBLIC_SUPABASE_URL=https://zrxoiqhivfkgzvyoobki.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key_here
# Google OAuth Configuration (Optional)
NEXT_PUBLIC_GOOGLE_CLIENT_ID=your_google_client_id_here
GOOGLE_CLIENT_SECRET=your_google_client_secret_here
# App Configuration
NEXT_PUBLIC_APP_URL=http://localhost:3003npm run devVisit http://localhost:3003 in your browser.
demoack-bsm-minimal/
โโโ pages/
โ โโโ index.tsx # Redirects based on auth status
โ โโโ login.tsx # Login/signup page
โ โโโ welcome.tsx # Welcome dashboard
โ โโโ auth/
โ โโโ callback.tsx # OAuth callback handler
โโโ lib/
โ โโโ supabase.ts # Supabase client configuration
โโโ package.json # Dependencies
โโโ next.config.js # Next.js configuration
โโโ tailwind.config.js # Tailwind CSS configuration
โโโ tsconfig.json # TypeScript configuration
โโโ README.md # This file
This demo uses your existing Supabase project at https://zrxoiqhivfkgzvyoobki.supabase.co.
-
Authentication Settings:
- Enable email/password authentication
- Enable Google OAuth provider
- Set up OAuth redirect URLs
-
Database Tables:
- Uses Supabase Auth (no additional tables required for basic functionality)
-
Row Level Security (RLS):
- Auth policies are handled automatically by Supabase Auth
/- Redirects to login or welcome based on auth status/login- Login and signup page with email/password and Google OAuth/welcome- Welcome page showing personalized message and platform overview/auth/callback- OAuth callback handler for Google authentication
- User visits the app
- If not authenticated, redirected to
/login - User can sign in with email/password or Google OAuth
- After successful login, redirected to
/welcome - Welcome page shows personalized message with platform overview
- User can sign out to return to login
- Push your code to GitHub
- Connect your repository to Vercel
- Add environment variables in Vercel dashboard
- Deploy
The app can be deployed to any platform that supports Next.js:
- Netlify
- Railway
- Heroku
- AWS Amplify
- Next.js 14 - React framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- Supabase - Authentication and backend
- Lucide React - Icons
| Variable | Description | Required |
|---|---|---|
NEXT_PUBLIC_SUPABASE_URL |
Your Supabase project URL | Yes |
NEXT_PUBLIC_SUPABASE_ANON_KEY |
Your Supabase anonymous key | Yes |
NEXT_PUBLIC_GOOGLE_CLIENT_ID |
Google OAuth client ID | No |
GOOGLE_CLIENT_SECRET |
Google OAuth client secret | No |
NEXT_PUBLIC_APP_URL |
Your app URL for OAuth callbacks | Yes |
- Authentication not working: Check your Supabase URL and anon key
- Google OAuth not working: Verify Google client ID and redirect URIs
- Build errors: Ensure all environment variables are set
- Check the Supabase Documentation
- Review Next.js Documentation
- Check the console for error messages
This is a 15% preview of the full BSM Platform. The complete platform includes:
- Customer Portal: Ticket management, service requests, ratings
- Admin Dashboard: Analytics, user management, system configuration
- Workflow Builder: AI-powered workflow creation and management
- Knowledge Base: Article management and search
- Integrations: Third-party service connections
- Rules Engine: Automated business logic
- AI Features: Sentiment analysis, auto-categorization, predictive routing
This project is licensed under the MIT License.
This is a demo version. For the full BSM Platform, contact the development team.
DemoAck - Experience 15% of the BSM Platform's power! ๐