Add minimal web UI

This commit is contained in:
2026-06-08 15:03:41 -05:00
parent 73f1ae63cb
commit fca1dd89f2
7 changed files with 1012 additions and 5 deletions
+13 -1
View File
@@ -1,6 +1,6 @@
# Gitocean
Gitocean is a small Go-based Git hosting platform for personal use. It provides a CLI, JSON HTTP API, MySQL metadata storage, and HTTP Smart Git transport. There is no web UI and no SSH transport.
Gitocean is a small Go-based Git hosting platform for personal use. It provides a CLI, minimal server-rendered web UI, JSON HTTP API, MySQL metadata storage, and HTTP Smart Git transport. There is no SSH transport.
## Quickstart
@@ -18,6 +18,14 @@ go run ./cmd/gitocean repo create demo --public
go run ./cmd/gitocean clone USER/demo
```
Open the minimal web UI at the server URL, for example:
```text
http://localhost:8080/repos
```
Web UI routes include `/repos`, `/login`, `/register`, `/repos/new`, and `/{username}/{repo}`.
## Storage
Bare repositories are stored under:
@@ -38,6 +46,10 @@ CLI auth config defaults to:
~/.config/gitocean/config.json
```
## Web UI
The web UI is intentionally minimal and server-rendered. It supports repository search, login/register/logout, repository creation, repository file browsing, plain-text file viewing, simple textarea-based file editing for users with write access, and forking public repositories. Private repositories cannot be forked.
## Development
Run checks with: