Prerequisites
Before starting, ensure you have the following installed:- Node.js v20 or higher
- PostgreSQL with
pgvectorextension enabled - Redis Server (local or remote)
- Git
Environment Setup
WHATSAPP_PHONE_NUMBER_ID="your_phone_number_id"
WHATSAPP_TOKEN="your_access_token"
WHATSAPP_VERIFY_TOKEN="your_verify_token"
See the Seeding Guide for details on what data gets seeded.
Manual Start (Alternative)
If you prefer to start services individually:Start Redis
Start Backend API
http://localhost:3001 with hot reload via nodemon.
Start Frontend
http://localhost:8080 with HMR enabled.
Available NPM Scripts
Frontend Development
npm run dev- Start Vite dev server (port 8080)npm run build- Production buildnpm run build:dev- Development buildnpm run preview- Preview production build
Backend Development
npm run api- Start backend servernpm run api:dev- Start backend with nodemon (hot reload)
Testing
npm run test- Run all tests oncenpm run test:watch- Run tests in watch mode
Code Quality
npm run lint- Run ESLint
Verifying the Setup
Troubleshooting
Redis Connection Issues
If Redis fails to start:Database Connection Issues
Ensure PostgreSQL is running and thepgvector extension is installed:
Port Already in Use
If port 3001 or 8080 is in use:Next Steps
- Review the Project Structure
- Learn about Database Migrations
- Explore Testing Guide
- Check Debugging Tips