Skip to content

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.

The fastest way to try Phaset is to run it on your local machine.

  • 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.

Install the Phaset CLI:

Terminal window
curl -sSL https://releases.phaset.dev/install.sh | bash

Add Phaset to your PATH (if needed):

Terminal window
export PATH="$HOME/.local/bin:$PATH"

Install the Phaset API using the CLI tool:

Terminal window
phaset install

Create a configuration file manually (as per below) or generate a scaffold using:

Terminal window
phaset init

Edit 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",
"user": "[email protected]",
"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",
"adminEmail": "[email protected]"
}
}
}

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.

Start the API server:

Terminal window
phaset start

In a separate terminal, serve the web app using any static file server:

Terminal window
# Navigate inside of the web app directory
cd path/to/phaset-web
# Simple example using a basic Node.js package called http-server
npx 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.

  1. Click the join button in the email you have received (the one you set as BOOTSTRAP_ADMIN_EMAIL)
  2. Phaset will process your join request and you’ll be able to sign in
  3. Sign in with your email, now that you are part of the organization
  4. Check your inbox for a magic link from Phaset
  5. Click the link to complete sign-in
  6. You’re in! Start exploring Phaset’s features.

Now that Phaset is running, here’s what to explore: