GitHub Codespaces Setup
This guide outlines how to set up Formbricks in a GitHub Codespaces environment.
Requirements:
- A GitHub Codespace that has support for Node.JS, pnpm, and Docker.
Steps:
-
Open your repository in GitHub Codespaces. If needed, clone the repository:
git clone https://github.com/formbricks/formbricks && cd formbricks
-
Setup NodeJS with nvm (if not already configured):
-
Install the dependencies:
-
Create a
.env file from the template:
-
Generate & set the required secrets:
sed -i '/^ENCRYPTION_KEY=/c\ENCRYPTION_KEY='$(openssl rand -hex 32) .env
sed -i '/^NEXTAUTH_SECRET=/c\NEXTAUTH_SECRET='$(openssl rand -hex 32) .env
sed -i '/^CRON_SECRET=/c\CRON_SECRET='$(openssl rand -hex 32) .env
-
Launch the development setup:
Use the Codespaces port forwarding to access Formbricks at http://localhost:3000.
Make sure your Codespaces port configuration is set to allow access to the app.