Quickstart
This guide shows you two ways to get started with Phaset quickly: running it locally on your machine, or deploying it to free cloud services for a demo accessible from anywhere.
Run Phaset Locally
Section titled “Run Phaset Locally”The fastest way to try Phaset is to run it on your local machine.
Prerequisites
Section titled “Prerequisites”- Node.js 24 or later (download)
- Basic comfort with command-line interfaces
- 10 minutes of your time
All of the below assumes Linux or MacOS or that you use equivalent tooling as expressed in the steps.
Step 1: Install Phaset
Section titled “Step 1: Install Phaset”Install the Phaset CLI:
curl -sSL https://releases.phaset.dev/install.sh | bashAdd Phaset to your PATH (if needed):
export PATH="$HOME/.local/bin:$PATH"Install the Phaset API using the CLI tool:
phaset installStep 2: Configure Phaset
Section titled “Step 2: Configure Phaset”Create a configuration file manually (as per below) or generate a scaffold using:
phaset initEdit phaset.config.json with your email settings. For local testing, you can use a service like Mailtrap or your own SMTP server:
{ "email": { "emailSubject": "Sign In To Phaset", "password": "your-smtp-password", "host": "smtp.mailtrap.io", "port": 2525, "secure": false }, "auth": { "jwtSecret": "your-secret-key-change-this", "appUrl": "http://localhost:5173/app" }, "server": { "allowedDomains": ["http://localhost:5173"] }, "phaset": { "licenseKey": "", "bootstrap": { "organizationName": "My Organization", } }}Step 3: Download and Configure the Web App
Section titled “Step 3: Download and Configure the Web App”Download the Phaset web application from releases.phaset.dev and extract it.
Open index.html in a text editor and verify the API endpoint configuration:
<script> window.APP_CONFIG = { apiBaseUrl: window.location.href.includes('localhost') ? 'http://localhost:3000' : 'https://your-production-api.com' };</script>The default configuration automatically uses http://localhost:3000 when accessing the app via localhost, which matches Phaset’s default port.
Step 4: Start Phaset
Section titled “Step 4: Start Phaset”Start the API server:
phaset startIn a separate terminal, serve the web app using any static file server:
# Navigate inside of the web app directorycd path/to/phaset-web
# Simple example using a basic Node.js package called http-servernpx http-server -o -p 5173 --proxy http://localhost:5173?You should receive an email asking you to join your Phaset organization. Phaset automatically invites the admin email when there is no existing data.
Step 5: Sign In
Section titled “Step 5: Sign In”- Click the join button in the email you have received (the one you set as
BOOTSTRAP_ADMIN_EMAIL) - Phaset will process your join request and you’ll be able to sign in
- Sign in with your email, now that you are part of the organization
- Check your inbox for a magic link from Phaset
- Click the link to complete sign-in
- You’re in! Start exploring Phaset’s features.
Deploy to the Cloud
Section titled “Deploy to the Cloud”Get Phaset running using free cloud services so you can try it from anywhere without local setup. Perfect for quick demos and evaluations.
Prerequisites
Section titled “Prerequisites”- Basic comfort with command-line interfaces
- A DigitalOcean account ($200 free credit)
- A Netlify account (free forever plan)
- 5 minutes of your time
Step 1: Deploy the Web Application
Section titled “Step 1: Deploy the Web Application”-
Download the Phaset web app from releases.phaset.dev
-
Create a redirects file for single-page app routing:
- Create a new file named
_redirects(no file extension) in the root folder - Add this single line:
/* /index.html 200 - Create a new file named
-
Deploy to Netlify:
- Log into Netlify
- Click “Add new site” → “Deploy manually”
- Drag and drop your entire Phaset folder into the upload area
- Wait ~30 seconds for deployment to complete
-
Copy your site URL from Netlify (you will get a randomized name, which you can configure; it looks like
https://something-random-here.netlify.app)
Step 2: Deploy the API
Section titled “Step 2: Deploy the API”-
Log into DigitalOcean and navigate to App Platform
-
Click “Create App”
-
Select “Container Image” and choose GitHub Container Registry
- Repository:
phasetdev/phaset-api - Image tag:
latest - Click Next
- Repository:
-
Configure your app:
- Instance size: Select the smallest available ($5/month)
- Region: Choose the closest datacenter to you
- Network: Under HTTP Port, enter
3000
-
Add environment variables under “App-Level Environment Variables”:
APP_URL=https://your-netlify-url.com/appALLOWED_DOMAINS=https://your-netlify-url.comBOOTSTRAP_ORG_NAME=My OrganizationEMAIL_HOST=smtp.provider.comEMAIL_PASSWORD=your-email-passwordEMAIL_PORT=465 # ExampleEMAIL_SECURE=true # If neededDEMO_MODE=true # If you want demo data to look at -
Review and create your app. Wait a minute or so for deployment to complete.
-
Copy your API URL from the app overview page (looks like
https://phaset-api-xxxxx.ondigitalocean.app) -
You should receive an email asking you to join your Phaset organization. Phaset automatically invites the admin email when there is no existing data. For now, refrain from clicking the join button, as we need to finish configuring Phaset.
Step 3: Reference the API in the Web Application
Section titled “Step 3: Reference the API in the Web Application”-
Update the API endpoint:
- Open
index.htmlin a text editor - Find the
window.APP_CONFIGconfiguration:
<script>window.APP_CONFIG = {apiBaseUrl: window.location.href.includes('localhost')? 'http://localhost:3000': 'https://phaset-api-xxxxx.ondigitalocean.app'};</script>- Replace
https://phaset-api-xxxxx.ondigitalocean.appwith your DigitalOcean API URL from Step 2
- Open
-
Redeploy to Netlify by dragging and dropping your entire Phaset folder into the upload area. Redeployment is very fast, since only a single file is changed.
Step 4: Sign In
Section titled “Step 4: Sign In”- Click the join button in the email you have received (the one you set as
BOOTSTRAP_ADMIN_EMAIL) - Phaset will process your join request and you’ll be able to sign in
- Sign in with your email, now that you are part of the organization
- Check your inbox for a magic link from Phaset
- Click the link to complete sign-in
- You’re in! Start exploring Phaset’s features.
What’s Next?
Section titled “What’s Next?”Now that Phaset is running, here’s what to explore:
- Go on and create your first Record
- Set up integrations to automate your Phaset work
- Time for a production installation?
- Curious? Read the Architecture overview
- Issues? Find your answers on the Troubleshooting page