# Forem — Open Source Community Platform Behind DEV.to > Self-hostable community platform for publishing articles, discussions, and podcasts, created by the team behind DEV.to. ## Install Save as a script file and run: # Forem — Open Source Community Platform Behind DEV.to ## Quick Use ```bash # Self-hosted via Forem Cloud or manual install git clone https://github.com/forem/forem.git && cd forem cp .env_sample .env # Edit .env with your database and service credentials bundle install && bin/rails db:setup bin/rails server # Access at http://localhost:3000 ``` ## Introduction Forem is the open-source Rails application that powers DEV.to, one of the largest developer communities on the web. It provides a full-featured platform for publishing articles, hosting discussions, sharing podcasts, and building engaged communities around any topic. ## What Forem Does - Publishes long-form articles with Markdown, code snippets, and liquid tags - Hosts threaded discussions, comments, and community Q&A - Manages user profiles with follow systems, badges, and reading lists - Distributes podcasts with built-in audio player and episode management - Supports listings for jobs, events, and community classifieds ## Architecture Overview Forem is a Ruby on Rails monolith backed by PostgreSQL for data, Redis for caching and background jobs, and Elasticsearch for search. The frontend combines server-rendered HTML with Preact components for interactive features. Sidekiq processes background tasks like notifications, feed generation, and content moderation. Images and media are stored via Active Storage with cloud provider adapters. ## Self-Hosting & Configuration - Requires Ruby 3.1+, Node.js 18+, PostgreSQL 13+, Redis 6+, and Elasticsearch 7 - Configure environment variables for database, Redis, email (SMTP), and cloud storage - Use Forem's setup scripts or Docker for development and staging environments - Set up an Imgproxy instance for dynamic image resizing and CDN delivery - Run Sidekiq workers alongside the web process for background job processing ## Key Features - Built-in content moderation tools with user roles and tag management - Customizable branding, colors, and navigation for white-label communities - SEO-optimized article pages with Open Graph metadata and structured data - Connect and API endpoints for third-party integrations and mobile apps - Federated features via ActivityPub for cross-community interaction ## Comparison with Similar Tools - **Discourse** — Focused on threaded forum discussion; less article publishing capability - **Ghost** — Polished publishing platform for newsletters and blogs; lacks community interaction depth - **WordPress** — Versatile CMS with plugins for forums; heavier and requires more customization - **Hashnode** — Developer blogging platform; hosted-only with limited self-hosting options - **Lemmy** — Federated link aggregator; focused on link sharing rather than long-form content ## FAQ **Q: Is Forem the same as DEV.to?** A: DEV.to is the largest instance of Forem. Forem is the open-source software anyone can self-host to create their own community. **Q: Can I customize the look and feel of a Forem instance?** A: Yes. Admins can change logos, colors, navigation, and landing page content through the admin dashboard without modifying code. **Q: Does Forem support user authentication providers?** A: Yes. Forem supports OAuth with GitHub, Twitter, Apple, Google, and other providers, plus email/password registration. **Q: How active is the Forem open-source project?** A: Forem has an active core team and contributor community. The project receives regular updates, though the self-hosted deployment story is still evolving. ## Sources - https://github.com/forem/forem - https://developers.forem.com --- Source: https://tokrepo.com/en/workflows/2b167f22-3cb4-11f1-9bc6-00163e2b0d79 Author: Script Depot