add simple admin service
Build and deploy / deploy (push) Successful in 16s

This commit is contained in:
2026-05-18 02:48:47 +03:00
parent 10a83d39a2
commit 3a3b2bcfc0
84 changed files with 2134 additions and 5 deletions
+9
View File
@@ -14,11 +14,20 @@ Useful commands:
```bash
cd ~/tmp/progcode/web
npm install
ADMIN_PORT=3333 npm run admin:posts
node scripts/buildDatabase.mjs
npm run dev -- --port 3000
npm run build
```
Local posts admin:
- run from `web/` with `npm run admin:posts`;
- open `http://127.0.0.1:3333`;
- it edits posts as Markdown and saves generated `contentHtml` to `web/data/articles.json`;
- uploaded files are stored in `web/public/assets/uploads/`;
- it lives in `local-admin/`, outside the Next.js app, and `.dockerignore` excludes it from Docker builds.
Docker static deploy:
```bash