Skip to main content

Self-building your desktop application

The web application is a simple Vite + React web application.

warning

The following features are disabled on the web application because of their requirements of native APIs:

  • Printing a sale receipt
  • Printing an invoice

Requirements

  • Node.js >= 22
  • Yarn > 1.22

Environment variables

Here are the environment variables that are required to make the application work.

Environment variableDescriptionRequiredDefault value
VITE_API_URLThe API base URL
VITE_SENTRY_DSNThe Sentry DSN, if you want to report errors on Sentry

Building the application

# Clone the repository
git clone https://github.com/xanyah/desktop.git && cd desktop

# Install dependencies
yarn

# Build the static application
yarn build