import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import BlocksMenu from './assets/blocks_post_menu.png'; import BlocksPost from './assets/blocks_post_example.png';
This guide will help you create your first Reddit Developer Platform app in minutes. For a more detailed walkthrough, see the building an app guide.
Before you start, you'll need:
- Node.js (v22.2.0+)
- A test subreddit that you moderate (with less than 200 members)
- After creating a test subreddit, visit your Safety Filters under mod tools (https://www.reddit.com/mod/[your_subreddit_name]/safety) and turn off the Reputation filter
- A code editor (we recommend VS Code)
Need help installing Node.js?
Option 1: Using nvm (Recommended)
nvm lets you easily manage multiple Node.js versions.
For macOS/Linux:
# 1. Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.6/install.sh | bash
# 2. Close and reopen terminal
# 3. Install Node.js
nvm install nodeFor Windows:
- Install nvm-windows
- Restart terminal
- Run
nvm install node
Option 2: Direct Installation
- Download from Node.js website
- Run the installer
:::caution Direct installation may cause permissions issues. We recommend using nvm instead. :::
Verify Installation
node --version
npm --versionWatch this video and see how easy it is to create an app. The tutorial starts at 1:35.
<iframe width="xxx" height="xxx" src="https://www.youtube.com/embed/BHtTIInycgg" title="Getting started with Reddit's Developer Platform" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen ></iframe>Follow these steps to install Devvit and create your first app.
- Install the Devvit CLI - Choose your preferred package manager:
- Log in to Reddit
devvit login- Create a new project
devvit new --template blocks-post
cd my-project:::tip Pro tip
If you're already a savvy web developer, use --template web-view-post (instead of the blocks-post template in step 3) to use the webview component features.
:::
- Upload your app
devvit upload- Playtest your app
devvit playtest <my-subreddit>:::tip
Replace <my-subreddit> with your test subreddit name (e.g., devvit playtest r/MyTestSub).
:::
- Visit your subreddit
- In your menu actions, you should see a button that says "Add my post"
- Refresh your subreddit page, and you should see a counter app
- As you make code changes, playtest automatically rebuilds and deploys
- Simply refresh the page to see your latest changes
- View realtime logs while playtest is active
- Press
Ctrl + cto stop playtest
:::tip If you don't see your post, visit your Safety Filters under mod tools (https://www.reddit.com/mod/[your_subreddit_name]/safety), turn off the Reputation filter, and try again. :::
Here are the recommended next steps:
- Learn about building interacative posts
- Check out the showcase to see example apps
- Learn how to publish your app
:::note
Reddit collects usage metrics when you use the Devvit CLI. See
Reddit's Developer Terms and
Privacy Policy. Opt out with devvit metrics off.
:::