GovWrenv0.10.0
GitHub

Getting started

This guide takes you from nothing to a running GovWren that your organization can sign in to. It is for whoever installs it and sets it up. Allow about fifteen minutes.

If you only want to look around first, skip to Explore the demo organization.

What you need#

Every command in these guides is run through uv run govwren … from the repository directory. The full list is in the command reference.

Install#

uv sync

Set up the installation#

uv run govwren init

init does five things:

  1. Writes govwren.toml, the deployment settings, in the current directory.
  2. Creates the data home, ./var, which holds everything that is not in the database.
  3. Creates the database. With no other setting, this is a SQLite file inside the data home.
  4. Loads the default program: the request form, the scoring model, the routing rules, and the standard conditions.
  5. Asks for your email address, your name, and a password, and creates the first administrator.

To begin from a program shaped for a university or an academic medical center instead of the default, add --program with the name of a starter.

The password needs at least 12 characters. Length matters more than symbols: a few unrelated words make a good one. It may not contain the name part of your email address.

init is safe to run again. It leaves an existing configuration file alone and creates an administrator only if there is none.

To set up without being asked anything, name the administrator and pipe the password in:

printf '%s' "$ADMIN_PASSWORD" | uv run govwren init \
  --admin-email you@example.org --admin-name "Your Name" --password-stdin

Check it#

uv run govwren doctor

doctor checks the configuration, the data home and its free space, that the database answers, that its schema is the one this version expects, that the database still refuses changes to the history, and that the history verifies. It exits with 1 if anything must be fixed.

Run it#

uv run govwren serve

The server prints its address, by default http://127.0.0.1:8000. Use --port to pick another port.

serve refuses to start in three cases, and says what to do in each:

It saysDo this
The database schema is behinduv run govwren db upgrade
There is no administrator yetuv run govwren users add you@example.org --name "Your Name" --role admin
The port is already in useStop what is using it, or pass --port

As installed, GovWren listens only on the machine it runs on. To put it in front of other people, read Configuration first.

Sign in for the first time#

Open the address in a browser and sign in with the email address and password you gave init.

Out of the box, people sign in with local accounts: an email address and a password held by GovWren. To let them use the account your organization already gives them, see Single sign-on. To send notices by email, see Email.

Find your way around#

The sidebar shows only what your roles let you use.

SectionPagesWho sees them
(top)Home, CatalogEveryone
InventoryUse cases, AI systems, VendorsEveryone
GovernanceDashboard, ReviewsDashboard: governance, auditors, administrators. Reviews: those and reviewers
AdminPeople, Units, AppearanceAdministrators

The top bar has Go to…, New request, the bell for your notices, Appearance, and your account menu.

Home for the governance lead: a search for tools, and a list of reviews, decisions, and triage waiting on themHome for the governance lead: a search for tools, and a list of reviews, decisions, and triage waiting on them
Home, for the governance lead of the demo organization

Finish the setup checklist#

Until the installation is set up, an administrator's Home shows a card, Set up your installation, with three steps. Each has a button that opens the right page.

1. Describe your organization#

Open Units. Every record in GovWren belongs to a unit, so this comes first.

  1. Choose Add your organization. This is the top unit. There is only one.
  2. Use Add within on any unit to add the divisions, departments, and labs beneath it. Units can nest to any depth.
  3. Give each unit a short, permanent Code, such as HALE. Imports match units by code.

If you already have the structure in a spreadsheet, choose Import instead. See Import units and people from CSV.

The Units page: the organization as a tree of divisions, labs, cores, and officesThe Units page: the organization as a tree of divisions, labs, cores, and offices
Admin → Units

2. Add the people who will run the program#

Open People and choose Add a person. Enter a name and an email address. Then either:

Open a person to set the units they work in and their roles.

RoleWhat it is for
AdminAccounts, units, appearance, and the installation itself
GovernanceRunning the program: triage, decisions, the catalog, any record
ReviewerReview tasks for the review functions they are given
AuditorReading everything, changing nothing
StewardLooking after the records of one unit and the units within it
MemberEveryone who can sign in: browse, request, and manage their own records

Two things to know at this point:

Running the program describes each role in full.

The People page: accounts with their roles and unitsThe People page: accounts with their roles and units
Admin → People

3. Make it yours#

Open Appearance to set the product name, your organization's name, a default palette, an accent color, and your logos. A preview shows your choices before you save. See Set the appearance.

The checklist marks a step done when there is at least one unit, when there is more than one account, and when an organization name, logo, or accent color has been set.

The Appearance page: product name, logo, palette, and accent color with a live previewThe Appearance page: product name, logo, palette, and accent color with a live preview
Admin → Appearance

What to do next#

Explore the demo organization#

The demo is a complete, fictional organization: the Alderpoint Institute for Medical Research. It has thirty months of history, with 66 units four levels deep, about 260 people, 40 vendors, 90 AI systems, and 300 use cases at every stage, tier, and standing.

uv run govwren demo
uv run govwren --config demo/govwren.toml serve

The first command builds the demo in ./demo, with its own configuration, data home, and database. It does not touch your own installation. The second starts it on port 8010.

The sign-in page of a demo lists nine sample people. Choose one to sign in as them; no password is asked for. Between them they cover every role: an administrator, two people in governance, a privacy reviewer and a security reviewer, an auditor, a division steward, a principal investigator who is steward of her lab, and a researcher.

Things to know about a demo:

The demo's sign-in page, listing nine sample people to sign in asThe demo's sign-in page, listing nine sample people to sign in as
The demo's sign-in page

SQLite or PostgreSQL#

GovWren runs on either, with the same features and the same data model.

SQLitePostgreSQL
Set upNothing to do. It is the defaultNeeds a server, a database, and one setting
Where the data isOne file, var/govwren.dbThe database server
Good forTrying it out, a pilot, a small teamMany people at once, more than one server process
Back upThe data home, as a wholeThe database, and the data home

Start with SQLite unless you already know you need PostgreSQL. Configuration shows how to set PostgreSQL up.

Keep it healthy#

ToRun
Check the installationuv run govwren doctor
Check that the history has not been altereduv run govwren verify
See which schema the database is atuv run govwren db current
Apply schema changes after updating GovWrenuv run govwren db upgrade
List accounts, or get back in when nobody can sign inuv run govwren users list, uv run govwren users reset-password EMAIL

Back up before db upgrade. An upgrade cannot be undone except by restoring.

Describes GovWren 0.10.0. Apache License 2.0. Screenshots show an invented organization; every person and record in them is fictional.