Prerequisites
Before you begin, ensure you have the following installed:- Node.js (Version: >=18.x)
- PostgreSQL (Version: >=13.x)
- Yarn (>=4.12.0) - recommended package manager
- Git for version control
If you want to enable any of the available integrations, you may need additional credentials. See the Integrations section for more details.
Quick Start with Docker
The fastest way to get started is using Docker:Requirements:
- Docker and Docker Compose must be installed
- This will start a local Postgres instance with test users
Default Test Credentials
| Password | Role | |
|---|---|---|
[email protected] | free | Free user |
[email protected] | pro | Pro user |
[email protected] | trial | Trial user |
[email protected] | ADMINadmin2022! | Admin user |
[email protected] | onboarding | Onboarding incomplete |
Manual Setup
1. Clone the Repository
Clone the repository (or fork it):2. Install Dependencies
3. Configure Environment Variables
Duplicate the example file:.env file.
4. Set Up Node Version
Use the correct Node version with nvm:5. Configure Database
Set theDATABASE_URL in your .env file:
Option A: Local PostgreSQL
- Download and install PostgreSQL
- Create a database:
- Connect and verify:
Option B: Cloud Services
Alternatively, use a hosted database:6. Copy Database URL to App Store Config
DATABASE_URL from .env to .env.appStore.
7. Run Database Migrations
Development:8. Set Up MailHog (Optional)
For viewing emails during development:Required when
E2E_TEST_MAILHOG_ENABLED is set to “1”9. Start Development Server
Creating Your First User
Method 1: Using Prisma Studio
-
Open Prisma Studio:
-
Navigate to the
Usermodel -
Add a new record with:
emailusernamepassword(encrypted with BCrypt)metadataset to{}
- Access http://localhost:3000 and login
Method 2: Seed the Database
yarn dx).
Development Tips
Increase Node Memory
Add to your shell profile or run before starting the app:Control Logging Verbosity
Set the log level in your.env file:
0- silly1- trace2- debug3- info4- warn5- error6- fatal
Gitpod Setup
Click the button below to open a fully configured workspace:Updating Your Local Environment
-
Pull the latest changes:
-
Update dependencies:
-
Run migrations:
-
Check for environment variable changes:
-
Restart the development server:
Building for Production
Ensure you can create a full production build:Next Steps
- Review the Architecture to understand the codebase structure
- Read the Coding Guidelines before making changes
- Learn about Testing practices