Getting Started with OpenForum
Welcome to OpenForum! This comprehensive guide will help you get your forum up and running quickly, whether you're setting up a development environment or deploying to production.
🎯 What You'll Learn
By the end of this guide, you'll have:
- ✅ A fully functional OpenForum installation
- ✅ User registration and authentication working
- ✅ Categories and discussions set up
- ✅ Admin panel access configured
- ✅ Email notifications enabled
- ✅ OAuth providers connected (optional)
📋 Prerequisites
Before you begin, ensure you have the following installed and ready:
Required
- Node.js (version 18 or higher) - Download here
- pnpm (recommended) or npm - Install pnpm
- PostgreSQL database (local or cloud) - Setup guide
- Git for version control - Download here
Optional but Recommended
- Resend Account - For email notifications Sign up
- Google/GitHub OAuth Apps - For social login
- Code Editor - VS Code recommended with TypeScript support
🚀 Quick Setup Path
Choose your setup approach:
🔥 Express Setup (5 minutes)
Perfect for trying OpenForum quickly:
- Clone repository
- Install dependencies
- Set up environment variables
- Run with SQLite (development only)
🏗️ Full Setup (15 minutes)
Recommended for development and production:
- Clone repository
- Install dependencies
- Set up PostgreSQL database
- Configure environment variables
- Run database migrations
- Configure email service
- Set up OAuth providers (optional)
☁️ Cloud Deployment (10 minutes)
Deploy directly to production:
- Fork repository
- Deploy to Vercel/Railway
- Connect cloud database
- Configure environment variables
- Set up domain
🛤️ Setup Steps Overview
Step 1: Installation
- Clone the OpenForum repository
- Install all project dependencies
- Verify your development environment
Step 2: Environment Configuration
- Set up your
.env.localfile - Configure database connection
- Set authentication secrets
- Configure email service
Step 3: Database Setup
- Create your PostgreSQL database
- Run database migrations
- Understand the schema structure
Step 4: First Steps
- Start the development server
- Create your first admin account
- Set up initial categories
- Test core functionality
🎯 Success Checklist
After completing the setup, verify these features work:
- Homepage loads - Forum homepage displays correctly
- User registration - New users can create accounts
- Email verification - Verification emails are sent and received
- User login - Authentication works with email/password
- OAuth login - Social login works (if configured)
- Category creation - Admin can create forum categories
- Thread creation - Users can create new discussion threads
- Posting replies - Users can reply to threads
- Admin panel access - Admin panel is accessible and functional
- Email notifications - Users receive notification emails
🆘 Need Help?
If you encounter issues during setup:
- Check the FAQ - Common setup issues and solutions
- Review Troubleshooting - Detailed problem-solving guide
- Search GitHub Issues - See if others have faced similar issues
- Ask in Discussions - Get help from the community
🔗 What's Next?
Choose your next step based on your goals:
For Development
- Installation Guide - Detailed setup instructions
- Development Guide - Understanding the codebase
- Contributing - How to contribute to OpenForum
For Production
- Deployment Guide - Production deployment options
- Configuration - Advanced configuration options
- Production Checklist - Pre-launch checklist
For Customization
- Theming Guide - Customize the appearance
- Branding Guide - Add your brand identity
- Component Customization - Modify UI components
Ready to dive in? Let's start with the Installation Guide 🚀