CompliancePro is a high-end, multi-tenant compliance SaaS platform built with SvelteKit, TailwindCSS, and Supabase. Designed for enterprise scale, it features a highly polished, responsive UI with advanced routing and robust role-based access control.
Follow these instructions to set up the project locally for development and testing.
Ensure you have Node.js (v18 or higher) installed on your system.
git clone https://github.com/walker666777888/tari-policy-quiz-demo-svelte-walker.git
cd tari-policy-quiz
Before running the app, duplicate the .env.example file to create your local .env configuration file:
cp .env.example .env
Populate the .env file with your local/development credentials:
PUBLIC_SUPABASE_URL: Your Supabase project URL.PUBLIC_SUPABASE_ANON_KEY: Your Supabase anonymous API key.SUPABASE_SERVICE_ROLE_KEY: Your secret service role key (Server-side only).PUBLIC_APP_URL: Defaults to http://localhost:5173.RESEND_API_KEY: API key for the Resend email service.npm install
npm run dev
Open http://localhost:5173 in your browser to view the application in real-time.
To verify that the project compiles correctly and is ready for production deployment, run the following commands:
# Build the application for production
npm run build
# Preview the built application locally
npm run preview
CompliancePro is optimized for Vercel and automatically uses the @sveltejs/adapter-vercel adapter in production environments.
When importing this repository to Vercel, use the following configuration:
SvelteKit (Automatically detected)npm run buildRemember to add the following Environment Variables in your Vercel Project Settings:
PUBLIC_SUPABASE_URLPUBLIC_SUPABASE_ANON_KEYSUPABASE_SERVICE_ROLE_KEYPUBLIC_APP_URL (Set to your production domain, e.g., https://your-app.vercel.app)RESEND_API_KEY (Optional)Note: No additional
vercel.jsonconfiguration is required. SvelteKit automatically detects the Vercel build environment and integrates perfectly.