From c1982a9c6b56e437e934fc305574ba8e86cdb644 Mon Sep 17 00:00:00 2001 From: juri1212 <80403888+juri1212@users.noreply.github.com> Date: Mon, 13 Jul 2026 21:53:29 +0200 Subject: [PATCH 1/3] Create content/welcome.md --- content/welcome.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 content/welcome.md diff --git a/content/welcome.md b/content/welcome.md new file mode 100644 index 0000000..73d17dc --- /dev/null +++ b/content/welcome.md @@ -0,0 +1 @@ +# hello world \ No newline at end of file From f384e2bdfebf7a9a225f8f2d14c4178ccb665ae9 Mon Sep 17 00:00:00 2001 From: juri1212 <80403888+juri1212@users.noreply.github.com> Date: Mon, 13 Jul 2026 22:30:22 +0200 Subject: [PATCH 2/3] Update content/welcome.md --- content/welcome.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/content/welcome.md b/content/welcome.md index 73d17dc..6fb19ff 100644 --- a/content/welcome.md +++ b/content/welcome.md @@ -1 +1,39 @@ -# hello world \ No newline at end of file +# Git CMS + +Rust backend for a GitHub-backed CMS. It exposes allowlisted UTF-8 content, +creates a draft pull request per editing session, and pushes session commits +using the authenticated GitHub user's GitHub App user token. + +## Run + +1. Copy `cms.example.toml` to `cms.toml` and set the repository/content values. +2. Copy `.env.example` to `.env` and provide the GitHub App and CMS JWT secrets. +3. Register the GitHub App user authorization callback as + `http://localhost:3000/auth/github/callback` (or your configured public URL). +4. Run `cargo run`. + +## Example frontend + +The `frontend` directory contains a small Vite-based editor. It handles the +GitHub sign-in callback, keeps the CMS JWT in browser local storage, and creates +a draft session automatically when the user first saves a file. + +In a second terminal, run: + +```sh +cd frontend +npm install +npm run dev +``` + +Open `http://localhost:5173`. The supplied `cms.example.toml` already uses +`http://localhost:5173/auth/callback` as its `frontend_callback_url`. + +Start authorization at `GET /auth/github/start`. The callback redirects to +`server.frontend_callback_url?token=`; the frontend sends that token +as `Authorization: Bearer ` to `/api/*`. + +The app installation needs repository read access for startup cloning. Users +need repository write access for session branch pushes and pull request changes. +No GitHub token is saved in repository configuration; user credentials are held +only in process memory, so signing in again is required after a backend restart. From 8255c191ab2398cfde0afae9baeba9330dd37f2e Mon Sep 17 00:00:00 2001 From: juri1212 <80403888+juri1212@users.noreply.github.com> Date: Mon, 13 Jul 2026 22:31:19 +0200 Subject: [PATCH 3/3] Update content/welcome.md --- content/welcome.md | 41 ++--------------------------------------- 1 file changed, 2 insertions(+), 39 deletions(-) diff --git a/content/welcome.md b/content/welcome.md index 6fb19ff..952fc35 100644 --- a/content/welcome.md +++ b/content/welcome.md @@ -1,39 +1,2 @@ -# Git CMS - -Rust backend for a GitHub-backed CMS. It exposes allowlisted UTF-8 content, -creates a draft pull request per editing session, and pushes session commits -using the authenticated GitHub user's GitHub App user token. - -## Run - -1. Copy `cms.example.toml` to `cms.toml` and set the repository/content values. -2. Copy `.env.example` to `.env` and provide the GitHub App and CMS JWT secrets. -3. Register the GitHub App user authorization callback as - `http://localhost:3000/auth/github/callback` (or your configured public URL). -4. Run `cargo run`. - -## Example frontend - -The `frontend` directory contains a small Vite-based editor. It handles the -GitHub sign-in callback, keeps the CMS JWT in browser local storage, and creates -a draft session automatically when the user first saves a file. - -In a second terminal, run: - -```sh -cd frontend -npm install -npm run dev -``` - -Open `http://localhost:5173`. The supplied `cms.example.toml` already uses -`http://localhost:5173/auth/callback` as its `frontend_callback_url`. - -Start authorization at `GET /auth/github/start`. The callback redirects to -`server.frontend_callback_url?token=`; the frontend sends that token -as `Authorization: Bearer ` to `/api/*`. - -The app installation needs repository read access for startup cloning. Users -need repository write access for session branch pushes and pull request changes. -No GitHub token is saved in repository configuration; user credentials are held -only in process memory, so signing in again is required after a backend restart. +# First content +ready to be merged \ No newline at end of file