···11+<!--
22+Copyright 2026 Shota FUJI <pockawoooh@gmail.com>
33+SPDX-License-Identifier: MIT
44+-->
55+66+# Development
77+88+Commands and tips for developing legit.
99+1010+## Load Testing
1111+1212+`tests/k6` directory contains `*.js` for [k6](https://grafana.com/oss/k6/), an OSS load testing tool.
1313+1414+These test files access a test server on localhost:8080.
1515+Run `nix run .#testing` (you need Nix Flakes) or follow steps described in `tests/k6/.gitignore` manually (you need bash, git, and built `legit` binary) to launch the test server.
1616+1717+Once the test server is ready, pass your desired test file to `k6 run` command.
1818+Nix user can use `nix run .#k6 -- run` without installing k6 manually.
1919+2020+## Code Formatting
2121+2222+This project use [dprint](https://dprint.dev/).
2323+You have to install [`nixfmt`](https://github.com/NixOS/nixfmt) and Go toolchain as well.
2424+2525+Nix user can run `nix fmt` without installing or configuring anything.
···11+# Copyright 2026 Shota FUJI <pockawoooh@gmail.com>
22+# SPDX-License-Identifier: MIT
33+44+# Test repositories. To manually run test server, run below:
55+# mkdir repos
66+# cd repos
77+# bash ../create_repos.bash
88+# cd ..
99+# ../../legit -config config.yaml
1010+/repos