Development Setup
This guide will help you set up RippleCore for local development. You’ll have a fully functional social impact evidence platform running in under 10 minutes.Prerequisites
Before you begin, ensure you have installed:1. Clone the Repository
2. Install Dependencies
RippleCore uses a Turborepo monorepo with pnpm workspaces:3. Start Infrastructure
RippleCore requires PostgreSQL 18 and Redis 7. Start them with Docker:- PostgreSQL 18 on port
5432 - Redis 7 on port
6379
4. Configure Environment
Create environment files for each app:apps/app/.env.local (Main Application)
apps/app/.env.local (Main Application)
apps/api/.env.local (API Server)
apps/api/.env.local (API Server)
apps/web/.env.local (Marketing Website)
apps/web/.env.local (Marketing Website)
5. Generate Auth Schema
RippleCore uses better-auth for authentication. Generate the database schema:6. Push Database Schema
Apply the complete database schema (13 tables) to PostgreSQL:This creates tables for: users, sessions, organizations, kindness acts, volunteer activities, donations, wellbeing surveys, and more.
7. Start Development Servers
Start all apps in development mode:- Main App: http://localhost:3000
- Marketing Website: http://localhost:3001
- API Server: http://localhost:3002
- Documentation: http://localhost:3004
Success! Navigate to http://localhost:3000 to see RippleCore running.
First Steps
Create Your First Organization
- Visit http://localhost:3000
- Click Sign Up and create an account
- Complete organization onboarding (takes 2 minutes)
- Choose your license tier: Starter (≤50 users), Growth (50-500), or Enterprise (500+)
Log Your First Evidence
1
Log a Kindness Act
Navigate to Kindness module and record your first peer recognition. Takes 30 seconds!
2
Create Volunteer Opportunity
Go to Volunteer module and create a community service event with GPS verification.
3
Record a Donation
Visit Donation module to track charitable contributions with multi-currency support.
Development Tools
Database Management
Drizzle Studio provides a web UI for database management:View Logs
Reset Database
Testing Your Setup
Run the Test Suite
Type Checking
Linting & Formatting
Common Issues
Database Connection Error
Database Connection Error
Symptom:
Error: connect ECONNREFUSED 127.0.0.1:5432Solution:Authentication Error
Authentication Error
Symptom:
Invalid session or Authentication failedSolution:Redis Connection Error
Redis Connection Error
Symptom:
Error: Redis connection failedSolution:pnpm Install Fails
pnpm Install Fails
Symptom:
ERR_PNPM_* errors during installationSolution:Next Steps
Key Concepts
Understand verification tiers, the 30-second rule, and multi-tenant architecture
Employee Guide
Learn how to log evidence as an employee user
Admin Guide
Set up organization settings and manage licenses
API Reference
Explore the complete API documentation
Architecture Overview
RippleCore uses a modern, scalable tech stack:- Frontend: Next.js 16 + React 19 + Tailwind CSS 4
- Backend: Hono.js API + Next.js Server Components
- Database: PostgreSQL 18 with Drizzle ORM
- Cache: Redis 7 (session storage + evidence caching)
- Auth: better-auth with organization multi-tenancy
- Monorepo: Turborepo 2.5.8 + pnpm workspaces
Need Help? Join our GitHub Discussions or email support@ripplecore.co.uk.
