Documentation Index
Fetch the complete documentation index at: https://mintlify.com/makriman/inspir/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Ensure you have the following installed: You’ll also need:- A Supabase project (Create one)
- An Anthropic API key (Get one)
Step 1: Clone the Repository
Step 2: Set Up the Database
Before running the application, you must set up the Supabase database schema. Follow the Database Setup Guide →Step 3: Configure Backend
Edit .env file
Open
backend/.env and configure the following:Finding your Supabase credentials:
- Go to your Supabase Dashboard
- Select your project
- Navigate to Settings → API
- Copy:
- Project URL →
SUPABASE_URL - anon/public key →
SUPABASE_ANON_KEY - service_role key →
SUPABASE_SERVICE_ROLE_KEY
- Project URL →
Step 4: Configure Frontend
Open a new terminal window (keep the backend running).Step 5: Test the Application
You should now have both servers running:- Frontend: http://localhost:5173
- Backend API: http://localhost:3000
Open the application
Navigate to http://localhost:5173 in your browser.
Troubleshooting
Backend won’t start
Check your environment variables:your_key_here placeholders).
Check if port 3000 is in use:
Frontend won’t connect to backend
Verify the API URL: Openfrontend/.env and confirm:
backend/server.js, ensure FRONTEND_URL matches your frontend URL:
Database connection errors
Verify Supabase credentials:- Go to Supabase Dashboard
- Check Settings → API for correct keys
- Ensure your project is not paused (free tier auto-pauses after inactivity)
AI features not working
Verify Anthropic API key: Test your API key:Development Workflow
File Watching
Both servers use hot module replacement (HMR):- Backend: Changes to
.jsfiles automatically restart the server (vianodemon) - Frontend: Changes to React components instantly update in the browser (via Vite HMR)
Project Structure
Making Changes
- Backend changes: Edit files in
backend/, server auto-restarts - Frontend changes: Edit files in
frontend/src/, browser auto-updates - Database changes: Update SQL scripts and re-run in Supabase SQL Editor
Running Tests
Next Steps
Once you’re ready to deploy to production, follow the production deployment guide.