Skip to content

Self-hosting

Quick start on your computer (beginner)

Never used a terminal much? Install Git, Node.js and Docker Desktop, copy UserTasks, run npm run setup:local and npm run dev, and create your admin account with the setup code. Windows, macOS and Linux.

Last updated 3 min read Edit this page on GitHub
On this page

This page gets UserTasks running on your own computer, step by step, even if you've hardly used a terminal before. It takes about half an hour, most of it waiting for downloads. Nothing is put on the internet: UserTasks runs only on your computer.

You'll type a few commands into a terminal, a window where you type instructions instead of clicking. Each code box below holds one command: copy it, paste it into the terminal and press Enter.

1. Install three things#

Download and install each one, accepting the default options:

ProgramWhy you need itDownload
GitCopies UserTasks to your computergit-scm.com
Node.js, the LTS versionRuns UserTasks (version 20 or later)nodejs.org
Docker DesktopRuns the database, sign-in and file storage in the backgrounddocker.com
  • Restart your computer if Docker asks.
  • Windows: if Docker Desktop asks to turn on WSL 2 (the Windows Subsystem for Linux, which Docker needs), say yes and let it restart.
  • Open Docker Desktop.

What you'll see: after a minute, Docker Desktop says Engine running. Leave it open whenever you use UserTasks.

2. Open a terminal#

  • Windows: open the Start menu, type PowerShell and open Windows PowerShell.
  • macOS: press ⌘ Space, type Terminal and press Enter.
  • Linux: open Terminal from your apps (often Ctrl+Alt+T).

Check that Node.js is installed:

Bash
node --version

What you'll see: v22.… or v24.… (any version from 20 up is fine). If it says "not recognized" or "command not found", close the terminal and open a new one: installers only reach windows opened after them. Still not found? Restart the computer.

3. Copy UserTasks to your computer#

This makes a folder called usertasks inside the folder the terminal is in (your home folder):

Bash
git clone https://github.com/homepresso/User-Tasks.git usertasks

Then go into it (cd means "change folder"):

Bash
cd usertasks

What you'll see: "Cloning into 'usertasks'…", then the prompt comes back. After cd usertasks the prompt ends in usertasks. Run every command from now on in this folder.

4. Set everything up#

Bash
npm run setup:local

It takes a few minutes the first time (it downloads the database images), and seconds after that. It:

  1. checks Node.js and that Docker is running, and tells you what to install if not
  2. installs UserTasks' packages (npm install)
  3. starts the local Supabase in Docker: the database, sign-in and file storage
  4. builds the database (a new database gets every migration; an existing one only the new ones, so your data is kept)
  5. writes your settings file, .env.local, with the database address and keys and fresh secrets (ENCRYPTION_KEY, CRON_SECRET); it never prints them
  6. sets up background jobs (schedules and queued runs) in the local database

What you'll see: [1/7] to [7/7], then All set. If it stops, it says what to fix. Fix it and run the same command again: it's safe to repeat. It never overwrites values already in .env.local, and never wipes the database unless you ask with --reset (it asks you to type yes first).

OptionWhat it does
npm run setup:local -- --startRuns npm run dev straight after
npm run setup:local -- --forcePoints an existing .env.local at the local Supabase (URL and keys only; secrets are kept)
npm run setup:local -- --resetDeletes everything in the local database and rebuilds it (asks first)

5. Start it#

Bash
npm run dev

What you'll see: after a few seconds, Ready, then a line like this:

UserTasks setup code: ABCD-EFGH-JKLM (open /setup to create the admin account)

Keep this window open: closing it stops UserTasks.

6. Create your admin account#

Open http://localhost:3000 in your browser ("localhost" means "this computer"). A new install shows Create your admin account. Fill in:

  • your organisation's name
  • your name, email and a password
  • the setup code from step 5

What you'll see: you're signed in, and the getting-started checklist opens.

7. You're in#

8. Stopping and starting again#

To stop: click the terminal running UserTasks and press Ctrl+C. Then stop the database:

Bash
npx supabase stop

To start again: open Docker Desktop, open a terminal, cd usertasks, then start the database:

Bash
npx supabase start

and UserTasks:

Bash
npm run dev

Your data is kept between restarts.

If something goes wrong#

You seeDo this
"Docker isn't installed" or "Docker is installed but not running"Open Docker Desktop, wait for Engine running, then run the command again
"Port 3000 is already in use"Another program, often a second npm run dev, is using it. Close that terminal or restart your computer. See Port 3000 is already in use
"Could not read package.json"You're in the wrong folder: cd usertasks, then try again
Lost the setup codenpm run setup-code prints a new one
The local Supabase won't startCheck Docker Desktop is running and has enough memory (Settings → Resources). See The local Supabase won't start

More fixes: Troubleshooting.

Next#

Choose how to run it for a team: Docker Compose, Kubernetes or an air-gapped bundle.

Was this page helpful?