Local Development
Set up a development bench
-
Set up a Frappe 16 bench with Python 3.14 and Node.js 24, following the Frappe installation guide.
-
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 -
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 -
bench start, then openhttp://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
- Create a branch, for example
feat/<short-name>orfix/<short-name>, fromdevelopor from the feature branch your change builds on. - Keep business logic in
services/, and keep API methods thin. - Add or update tests for what you change, and run them.
- Commit with a conventional subject, such as
feat(booking-desk): …orfix(folio): …, and a body that explains what and why. - Open a pull request against the branch you started from. CI and the linters must pass.
- If the change affects users, update these docs. The Release notes are written from the pull request titles.