Quick Start Guide
Quick Start Guide
Section titled “Quick Start Guide”Get ThriveSend B2B2G up and running in 10 minutes
Prerequisites
Section titled “Prerequisites”Before you begin, ensure you have:
- Node.js 20+ installed
- PostgreSQL 16+ database
- Redis 7+ (optional, for caching)
- Git installed
Installation Steps
Section titled “Installation Steps”1. Clone the Repository
Section titled “1. Clone the Repository”git clone https://github.com/gedeza/thrive-send-b2b2g.gitcd thrive-send-b2b2g2. Install Dependencies
Section titled “2. Install Dependencies”# Using pnpm (recommended)pnpm install
# Or using npmnpm install3. Set Up Environment Variables
Section titled “3. Set Up Environment Variables”# Copy the example environment filecp .env.example .env.local
# Edit .env.local with your configurationRequired Environment Variables:
# DatabaseDATABASE_URL="postgresql://user:password@localhost:5432/thrivesend"
# Clerk AuthenticationNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="pk_test_..."CLERK_SECRET_KEY="sk_test_..."
# App URLsNEXT_PUBLIC_APP_URL="http://localhost:3000"4. Set Up Database
Section titled “4. Set Up Database”# Run Prisma migrationspnpm prisma migrate dev
# Seed database with sample data (optional)pnpm prisma db seed5. Start Development Server
Section titled “5. Start Development Server”# Start the development serverpnpm dev
# Open browser to http://localhost:3000First Steps
Section titled “First Steps”1. Create Your Account
Section titled “1. Create Your Account”- Navigate to
http://localhost:3000 - Click “Sign Up”
- Complete registration
- Verify your email
2. Set Up Your Organization
Section titled “2. Set Up Your Organization”- After login, you’ll be prompted to create an organization
- Enter your organization details:
- Organization name
- Industry sector
- Contact information
3. Invite Team Members
Section titled “3. Invite Team Members”- Go to Team section
- Click “Invite Member”
- Enter email and select role
- Team member receives invitation email
4. Add Your First Client
Section titled “4. Add Your First Client”- Navigate to Clients section
- Click “Add Client”
- Enter client details:
- Client name
- Sector (Business or Government)
- Contact information
- Security clearance (for government clients)
5. Create Your First Campaign
Section titled “5. Create Your First Campaign”- Go to Campaigns section
- Click “Create Campaign”
- Fill in campaign details:
- Campaign name
- Client selection
- Campaign type
- Content and approval workflow
Next Steps
Section titled “Next Steps”Now that you’re set up, explore these features:
- Compliance Tools - POPIA compliance features
Common Issues
Section titled “Common Issues”Database Connection Errors
Section titled “Database Connection Errors”Problem: Cannot connect to PostgreSQL database
Solution:
# Check PostgreSQL is runningpg_isready
# Verify DATABASE_URL in .env.local# Ensure database existscreatedb thrivesendClerk Authentication Errors
Section titled “Clerk Authentication Errors”Problem: Authentication not working
Solution:
- Verify Clerk keys in
.env.local - Check Clerk dashboard for application status
- Ensure redirect URLs are configured correctly
Port Already in Use
Section titled “Port Already in Use”Problem: Port 3000 is already in use
Solution:
# Run on different portPORT=3001 pnpm devGetting Help
Section titled “Getting Help”- GitHub Issues: Report bugs or request features
Congratulations! You’re now ready to use ThriveSend B2B2G.