No description
Find a file
padreug 84e6e81f04 fix: handle empty machines table in restrictionLevel query
Return 0 when no machines exist instead of throwing an error.
This fixes the authentication error on fresh installations where
the machines table is empty.
2025-12-31 19:05:01 +01:00
.github/workflows v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
.husky v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
.vscode v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
build v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
packages fix: handle empty machines table in restrictionLevel query 2025-12-31 19:05:01 +01:00
.dockerignore v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
.gitignore v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
.prettierrc v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
.tool-versions v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
CRYPTO_README.md v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
eslint.config.mjs v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
LICENSE v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
package.json chore: version bump 2025-12-31 19:05:01 +01:00
pnpm-lock.yaml fix: drop deprecated coin change lib 2025-12-31 19:05:01 +01:00
pnpm-workspace.yaml v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
README.md v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
shell.nix v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00
turbo.json v12.0.0 - initial commit 2025-12-31 19:04:13 +01:00

lamassu-server

Lamassu remote server.

Pull Requests

We do not generally accept outside pull requests for new features. Please consult with us before putting a lot of work into a pull request.

Development

Requirements

  • Nodejs 22
  • PNPM 10+
  • Postgres Database
  • Python 3 (to be deprecated, required by a single dependency installation)
  • OpenSSL (for cert-gen.sh, it will set up the server self-signed certificates)

There's a shell.nix file that you can use to set up your env in case you're a nix user. (most reliable way of installing native deps) There's also a .tool-versions for asdf and mise users.

This project uses Turbo for monorepo management. Install dependencies:

pnpm install

Prepare environment files:

bash packages/server/tools/cert-gen.sh

On packages/server/.env you can alter variables such as the postgres connection info.

After configuring the postgres connection, run:

node packages/server/bin/lamassu-migrate

Start development environment:

If you've already done the setup, you can run:

pnpm run dev

Creating a user

node packages/server/bin/lamassu-register admin@example.com superuser

Pairing a machine

To get the pairing token from the QRCode open the browser console before picking the name of the machine, the token should appear on the terminal. It's also possible to inspect the qrCode, the token is on the data-cy="" attr. Lastly, you can always scan it with a phone and copy the contents over.

Now continue with lamassu-machine instructions from the INSTALL.md file in lamassu-machine repository