Frappoint

Frappoint

Local Development

Set up a development bench

  1. Set up a Frappe 16 bench with Python 3.14 and Node.js 24, following the Frappe installation guide.

  2. Get the apps:

    bench get-app erpnext --branch version-16
    bench get-app hrms --branch version-16
    bench get-app payments --branch version-16
    bench get-app https://github.com/navariltd/frappoint
    
  3. Create a site, install Frappoint and turn on developer mode:

    bench new-site frappoint.localhost
    bench --site frappoint.localhost install-app frappoint
    bench --site frappoint.localhost set-config developer_mode 1
    bench --site frappoint.localhost set-config allow_tests true
    
  4. bench start, then open http://frappoint.localhost:8000/app/frappoint.

To get data to work with, generate the sample spa and hotel.

Front ends

bench build builds both Vue apps through the app's root package.json (yarn build). To work on one with hot reload:

cd apps/frappoint/booking_desk     # or apps/frappoint/portal
yarn install
yarn dev

The Vite dev server runs on your bench's web port plus 80 (8080 for a bench on 8000) and proxies API calls to the bench. Open http://frappoint.localhost:8080/booking_desk (or /portal). Log in on port 8000 first.

To build one app on its own, run yarn build in its folder. The output goes to frappoint/public/<app> and frappoint/www/<app>/index.html, which git ignores.

Tests

Tests live next to the code: test_*.py in DocType folders, frappoint/frappoint/services/, frappoint/frappoint/api/, and frappoint/vuna_hospitality/tests/.

bench --site frappoint.localhost run-tests --app frappoint
bench --site frappoint.localhost run-tests --module frappoint.vuna_hospitality.tests.test_folio

Use a site made for testing: run-tests creates test records. Hospitality tests are written to be independent of the site's own data and cache.

Code style

The repository uses pre-commit:

cd apps/frappoint
pre-commit install

On every commit it runs ruff (lint and format, line length 110), Prettier and ESLint for JavaScript and Vue, and basic file checks (JSON, TOML, YAML, merge conflicts, trailing whitespace).

Continuous integration

GitHub Actions run on the repository:

Workflow When What
CI (.github/workflows/ci.yml) Pushes to develop, and pull requests Sets up Frappe, ERPNext, HRMS and Payments on version-16 with Python 3.14 and Node 24, installs Frappoint on a test site and runs bench run-tests --app frappoint.
Linters (.github/workflows/linter.yml) Pull requests pre-commit, Frappe Semgrep rules, and pip-audit on the dependencies.

Contributing

  1. Create a branch, for example feat/<short-name> or fix/<short-name>, from develop or from the feature branch your change builds on.
  2. Keep business logic in services/, and keep API methods thin.
  3. Add or update tests for what you change, and run them.
  4. Commit with a conventional subject, such as feat(booking-desk): … or fix(folio): …, and a body that explains what and why.
  5. Open a pull request against the branch you started from. CI and the linters must pass.
  6. If the change affects users, update these docs. The Release notes are written from the pull request titles.
Last updated 5 days ago
Was this helpful?
Thanks!