mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 20:28:04 +01:00
- Added intelligent onboarding with AI analysis and personalized recommendations - Implemented organization creation with founder membership and role-based access - Built 11 production APIs for full entity relationships: * Profile endpoints: campaigns, projects, organizations * Organization endpoints: campaigns, projects, member management * Project endpoints: campaigns, add/remove campaigns * Campaign endpoints: stats and enhanced detail - Enhanced UX with guest-first campaign creation flow - Fixed sidebar naming consistency (Campaigns vs Fundraising) - Improved onboarding with interactive category cards and clean animations - Added comprehensive documentation and integration guides - Implemented proper JSX structure and TypeScript fixes
🚀 Getting Started with OrangeCat
Welcome to the OrangeCat Bitcoin Crowdfunding Platform! This guide will help you get up and running with development, deployment, and usage.
📋 Prerequisites
Before you begin, ensure you have:
- Node.js 18+ - Download here
- npm or yarn - Package manager
- Git - Version control
- Supabase Account - Database and authentication
⚡ Quick Setup
1. Clone the Repository
git clone <repository-url>
cd orangecat
2. Install Dependencies
npm install
3. Set up Environment Variables
cp config/production.env.template .env.local
# Edit .env.local with your Supabase credentials
4. Set up Supabase
# Install Supabase CLI
npm install -g supabase
# Link your project
supabase link --project-ref your-project-ref
# Apply migrations
supabase db reset
5. Start Development Server
npm run dev
Visit http://localhost:3000 to see your app!
🔧 Development Workflow
Code Structure
src/
├── app/ # Next.js App Router pages
├── components/ # Reusable UI components
├── services/ # Business logic and API calls
├── types/ # TypeScript type definitions
├── utils/ # Utility functions
└── lib/ # Core libraries and configurations
Key Commands
# Development
npm run dev # Start dev server
npm run build # Build for production
npm run start # Start production server
# Testing
npm test # Run all tests
npm run test:watch # Watch mode
npm run test:coverage # Generate coverage report
# Database
supabase db reset # Reset database
supabase db push # Apply migrations
supabase studio # Open Supabase dashboard
# Code Quality
npm run lint # Run ESLint
npm run type-check # Run TypeScript checks
📚 Next Steps
- Development Guide - Detailed development workflow
- Testing Guide - Testing strategies and patterns
- Deployment Guide - Production deployment
- API Reference - API documentation
🆘 Troubleshooting
Common Issues
Database connection errors:
- Check your
.env.localfile has correct Supabase credentials - Ensure your Supabase project is active
- Run
supabase statusto check connection
Build errors:
- Run
npm run type-checkto identify TypeScript issues - Check for missing dependencies with
npm install - Clear
.nextfolder and rebuild
Test failures:
- Ensure database is properly seeded
- Check test environment variables
- Run tests with
--verbosefor detailed output
📞 Getting Help
- Documentation: Browse this
/docsdirectory - Issues: Check existing GitHub issues
- Discussions: Use GitHub Discussions for questions
- Chat: Join our development Slack/Discord
Ready to contribute? Check out our Contributing Guide!