Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Code

527 commit(s) on main

Put job execution behind an interface Keenan Nemetz · 2h ago de3eec16
source preview history blame raw 4.5 KiB
1# Quickstart
2
3Create a local Vole instance, push a commit, and open an issue. By the end, you
4will have a running forge and a clone that contains both source and issue
5history.
6
7## Before you start
8
9You need:
10
11- [Vole installed](install.md), with `vole version` printing a version;
12- Git configured with your author name and email;
13- an SSH key for Git access.
14
15If you do not have an SSH key, create one and accept the default file location:
16
17```sh
18ssh-keygen -t ed25519
19```
20
21Start in an empty workspace. You will create a `forge/` directory for the server
22and a `demo/` clone beside it. The examples use the account name `you`; replace
23that name and the SSH key path if yours differs.
24
25## 1. Create the instance
26
27Create the instance and change into its directory:
28
29```sh
30mkdir forge
31cd forge
32vole admin init --dir .
33```
34
35Vole writes `vole.toml` and `data/`, then prints:
36
37```text
38initialised in <workspace>/forge
39```
40
41An instance is just this configuration and data directory. Stay in `forge/` for
42the next three steps so Vole finds `./vole.toml` automatically.
43
44## 2. Create your account
45
46Register the SSH key you will use for Git:
47
48```sh
49vole admin account create you --key ~/.ssh/id_ed25519.pub
50```
51
52The output confirms the account and key:
53
54```text
55you
56key SHA256:<fingerprint>
57```
58
59## 3. Create a repository
60
61Create `demo` and grant your account repository-admin access:
62
63```sh
64vole admin repo create demo
65vole admin acl set-role demo you admin
66```
67
68New repositories are private. Repository admin access lets you push `main`,
69manage access, and administer this repository without making you an instance
70administrator.
71
72!!! tip "Optional: allow anonymous reads"
73 Run `vole admin acl set-default-role demo read` if you want to browse `demo`
74 without signing in. This quickstart listens only on loopback, so other
75 machines still cannot connect. Skip this command to keep `demo` private.
76
77## 4. Start the server
78
79In the same `forge/` directory, run:
80
81```sh
82vole serve
83```
84
85Leave this process running. Vole now listens on:
86
87- `127.0.0.1:2222` for authenticated Git over SSH;
88- `127.0.0.1:8080` for the web interface and read-only Git over HTTP.
89
90These loopback addresses make the instance available only on this machine. If
91you allowed anonymous reads, open <http://127.0.0.1:8080/demo> after pushing the
92first commit to see the repository in your browser.
93
94Browser sign-in needs an HTTPS `public_url` and a passkey, so this local
95configuration keeps it disabled. Use the CLI for this quickstart;
96[Deploy on Linux](deploy/linux.md) covers browser sign-in for a deployed forge.
97
98## 5. Clone and push
99
100Open a second terminal in the original workspace, beside `forge/`. Clone the
101empty repository and enter it:
102
103```sh
104git clone ssh://git@127.0.0.1:2222/demo.git
105cd demo
106```
107
108If SSH asks whether to trust the local host key, answer `yes`. Git also warns
109that the repository is empty; that is expected.
110
111Create the first commit on `main` and push it:
112
113```sh
114git branch -M main
115printf '# demo\n' > README.md
116git add README.md
117git commit -m "Start the repository"
118git push -u origin main
119```
120
121Confirm which account and repository role your SSH key has:
122
123```sh
124vole whoami
125vole whoami --role
126```
127
128```text
129you
130admin
131```
132
133## 6. Open an issue
134
135Run the Vole CLI from the clone:
136
137```sh
138vole issue new --title "Write the introduction" \
139 -m "Explain what a new reader can do with demo."
140vole issue list --format '%(number) %(state) %(author) %(title)'
141```
142
143The issue list shows your first issue:
144
145```text
146#1 open you Write the introduction
147```
148
149The CLI writes the issue to the repository's `vole` branch and pushes it over
150SSH. List the remote branches to see the two histories:
151
152```sh
153git branch -r
154```
155
156```text
157 origin/main
158 origin/vole
159```
160
161`origin/main` contains the README commit. `origin/vole` contains the issue. Both
162are part of the same clone.
163
164## 7. Stop the server and read the issue offline
165
166Return to the server terminal and press `Ctrl+C`. Then, from the `demo/` clone,
167read the issue without the server:
168
169```sh
170vole issue show 1
171```
172
173This works because the clone carries Vole's collaboration history as well as the
174source. Writes still need the server and your SSH identity.
175
176Your instance remains in `forge/`. To start it again later, run this from the
177`demo/` directory:
178
179```sh
180cd ../forge
181vole serve
182```
183
184## Next
185
186- [Issues](issues.md) — discuss, assign, label, and close work.
187- [Change requests](change-requests.md) — propose and review the next commit.
188- [Workflows](workflows.md) — test every push in a container.
189- [Deploy on Linux](deploy/linux.md) — run a shared forge with HTTPS and browser
190 sign-in.
191