Quickstart
This guide shows you two ways to get started with MolnOS quickly: running it locally on your machine, or deploying it to free cloud services for a demo accessible from anywhere.
Run MolnOS Locally
Section titled “Run MolnOS Locally”The fastest way to try MolnOS 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 MolnOS
Section titled “Step 1: Install MolnOS”Install the MolnOS CLI:
curl -sSL https://releases.molnos.cloud/install.sh | bashAdd MolnOS to your PATH (if needed):
export PATH="$HOME/.local/bin:$PATH"Install the MolnOS API using the CLI tool:
molnos installStep 2: Configure MolnOS
Section titled “Step 2: Configure MolnOS”Create a configuration file manually (as per below) or generate a scaffold using:
molnos initEdit molnos.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 MolnOS", "user": "your-email@example.com", "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"] }, "molnos": { "licenseKey": "", "bootstrap": { "organizationName": "My Organization", "adminEmail": "your-email@example.com" } }}Step 3: Download and Configure the Web App
Section titled “Step 3: Download and Configure the Web App”Download the MolnOS web application from releases.molnos.cloud 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 MolnOS’s default port.
Step 4: Start MolnOS
Section titled “Step 4: Start MolnOS”Start the API server:
molnos startIn a separate terminal, serve the web app using any static file server:
# Navigate inside of the web app directorycd path/to/molnos-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 MolnOS organization. MolnOS 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) - MolnOS 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 MolnOS
- Click the link to complete sign-in
- You’re in! Start exploring MolnOS’s features.
Deploy to the Cloud
Section titled “Deploy to the Cloud”Get MolnOS 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 MolnOS web app from releases.molnos.cloud
-
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 MolnOS 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:
molnoscloud/molnos-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_ADMIN_EMAIL=your-email@example.comBOOTSTRAP_ORG_NAME=My OrganizationEMAIL_HOST=smtp.provider.comEMAIL_USER=signin@example.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://molnos-api-xxxxx.ondigitalocean.app) -
You should receive an email asking you to join your MolnOS organization. MolnOS 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 MolnOS.
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://molnos-api-xxxxx.ondigitalocean.app'};</script>- Replace
https://molnos-api-xxxxx.ondigitalocean.appwith your DigitalOcean API URL from Step 2
- Open
-
Redeploy to Netlify by dragging and dropping your entire MolnOS 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) - MolnOS 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 MolnOS
- Click the link to complete sign-in
- You’re in! Start exploring MolnOS’s features.
What’s Next?
Section titled “What’s Next?”Now that MolnOS is running, here’s what to explore:
- Go on and create your first Record
- Set up integrations to automate your MolnOS work
- Time for a production installation?
- Curious? Read the Architecture overview
- Issues? Find your answers on the Troubleshooting page