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.

Blame · docs/quickstart.md

Line attribution on main · 190 line(s)

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