docs: document fork roadmap and upstream sync
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
6d219487de
commit
23c94e01f6
1 file changed
+95
@@ -0,0 +1,95 @@
|
||||
# Homebrewery OIDC fork
|
||||
|
||||
This fork extends [naturalcrit/homebrewery](https://github.com/naturalcrit/homebrewery)
|
||||
for self-hosting while preserving its complete upstream history and MIT license.
|
||||
Keep fork changes small and isolated in modules or configuration so upstream
|
||||
updates remain practical to merge.
|
||||
|
||||
## Remotes and branches
|
||||
|
||||
- `origin`: `https://git.morlana.online/f.weber/homebrewery-oidc.git`
|
||||
- `upstream`: `https://github.com/naturalcrit/homebrewery.git`
|
||||
- `main`: reviewed integration branch for this fork.
|
||||
- `upstream`: pristine upstream `master`; never add fork commits here.
|
||||
|
||||
The initial import is upstream commit
|
||||
`73df298c2504e22cdfc1a0961ce6306d1e62d5ba` (10,343 reachable commits).
|
||||
Both `main` and `upstream` initially point to that exact commit. The one-time
|
||||
import into the empty repository is the only direct-to-`main` exception.
|
||||
|
||||
## Reproducible upstream sync
|
||||
|
||||
Start from a clean working tree. Configure the upstream remote once after cloning:
|
||||
|
||||
```sh
|
||||
git clone https://git.morlana.online/f.weber/homebrewery-oidc.git
|
||||
cd homebrewery-oidc
|
||||
git remote add upstream https://github.com/naturalcrit/homebrewery.git
|
||||
```
|
||||
|
||||
For each update (choose a unique branch name):
|
||||
|
||||
```sh
|
||||
git fetch origin
|
||||
git switch main
|
||||
git merge --ff-only origin/main
|
||||
git switch -c sync/upstream-YYYY-MM-DD
|
||||
git fetch upstream && git merge upstream/master
|
||||
# Resolve conflicts, preserving the fork's isolated features; commit if needed.
|
||||
npm install
|
||||
npm run build
|
||||
npm test
|
||||
npm run lint:dry
|
||||
git push -u origin sync/upstream-YYYY-MM-DD
|
||||
```
|
||||
|
||||
Open a PR against `main`, include the imported upstream range and validation
|
||||
results, and request Archimedes' review (Claudia reviews Archimedes' own PRs).
|
||||
Do not merge your own PR. Do not rebase or squash imported upstream history.
|
||||
After the reviewed sync merges, advance the pristine tracking branch:
|
||||
|
||||
```sh
|
||||
git fetch origin
|
||||
git fetch upstream
|
||||
git merge-base --is-ancestor origin/upstream upstream/master
|
||||
git push origin upstream/master:refs/heads/upstream
|
||||
```
|
||||
|
||||
The ancestry check and non-force push must succeed. If upstream rewrites history,
|
||||
stop for review instead of force-pushing. Never merge `main` into `upstream`.
|
||||
Use a feature branch from current `main` and a reviewed PR for fork changes.
|
||||
Keep credentials in the environment; never put tokens in remote URLs or files.
|
||||
|
||||
## Fork roadmap
|
||||
|
||||
These are planned features, not functionality delivered by the initial import:
|
||||
|
||||
| Milestone | Scope |
|
||||
| --- | --- |
|
||||
| [M0](https://git.morlana.online/f.weber/homebrewery-oidc/milestone/4) | Upstream import, CI, development setup |
|
||||
| [M1](https://git.morlana.online/f.weber/homebrewery-oidc/milestone/5) | OIDC login |
|
||||
| [M2](https://git.morlana.online/f.weber/homebrewery-oidc/milestone/6) | PostgreSQL backend (PostgreSQL 18+) |
|
||||
| [M3](https://git.morlana.online/f.weber/homebrewery-oidc/milestone/7) | Git backend including sharing |
|
||||
| [M4](https://git.morlana.online/f.weber/homebrewery-oidc/milestone/8) | Image uploads to the Git repository |
|
||||
|
||||
Track implementation and review status on the
|
||||
[roadmap board](https://git.morlana.online/f.weber/homebrewery-oidc/projects/2).
|
||||
|
||||
## Local startup
|
||||
|
||||
Consult `package.json` for the actual engine requirements: this imported revision
|
||||
requires Node >=26.4.0 and npm >=10.8 <12. The older Node guidance in the upstream
|
||||
README does not match this revision. Start a separate local MongoDB instance,
|
||||
then run:
|
||||
|
||||
```sh
|
||||
export NODE_ENV=local
|
||||
export MONGODB_URI=mongodb://127.0.0.1:27017/homebrewery
|
||||
npm install
|
||||
npm start
|
||||
```
|
||||
|
||||
Installation runs the production asset build through `postinstall`. The default
|
||||
application URL is `http://localhost:8000`. Use only disposable test data and stop
|
||||
test processes and containers when finished. See import PR validation for the
|
||||
actual result on the development VM.
|
||||
Reference in new issue
Block a user