|
@@ -19,6 +19,27 @@ build a docker image or use `Deno Deploy` officially recommended in
|
|
|
## Development
|
|
## Development
|
|
|
|
|
|
|
|
Install `deno` runtime according to [this doc](https://docs.deno.com/runtime/),
|
|
Install `deno` runtime according to [this doc](https://docs.deno.com/runtime/),
|
|
|
-then execute `deno task dev` in the project root, all the dependencies should be
|
|
|
|
|
-automatically installed. Then check `localhost:8000` in your browser for the
|
|
|
|
|
-website
|
|
|
|
|
|
|
+then run the setup task to install dependencies and enable git hooks:
|
|
|
|
|
+
|
|
|
|
|
+```bash
|
|
|
|
|
+deno task setup
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+Start the dev server and visit `localhost:8000`:
|
|
|
|
|
+
|
|
|
|
|
+```bash
|
|
|
|
|
+deno task dev
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+### Available tasks
|
|
|
|
|
+
|
|
|
|
|
+- `deno task dev` - Start the development server
|
|
|
|
|
+- `deno task test` - Run all tests (backend + UI)
|
|
|
|
|
+- `deno task check` - Check formatting, linting, and types
|
|
|
|
|
+- `deno task setup` - Install dependencies and configure git hooks
|
|
|
|
|
+
|
|
|
|
|
+### Git hooks
|
|
|
|
|
+
|
|
|
|
|
+A pre-commit hook is configured via `.githooks/` to automatically check
|
|
|
|
|
+formatting and run tests before each commit. The `deno task setup` command
|
|
|
|
|
+enables this by setting `core.hooksPath` to `.githooks/`.
|