{"id":28296099,"url":"https://github.com/madspaaskesen/sacred-backend-starter","last_synced_at":"2026-04-08T11:32:41.742Z","repository":{"id":293244463,"uuid":"983087090","full_name":"madspaaskesen/sacred-backend-starter","owner":"madspaaskesen","description":"🕊️ Sacred Backend Starter A clean and secure Node.js + Express backend starter with JWT auth, Prisma, and full test coverage — made to grow sacred projects.  Perfect for starting new API projects or cloning into sacred ecosystems like Sacred-AI or MySiteChart.","archived":false,"fork":false,"pushed_at":"2025-05-14T16:25:35.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T08:47:43.141Z","etag":null,"topics":["eslint","expressjs","javascript","jest","jwt","jwt-authentication","nodejs","prettier","prisma"],"latest_commit_sha":null,"homepage":"https://sacred-ai.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madspaaskesen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-13T21:22:55.000Z","updated_at":"2025-06-07T15:41:23.000Z","dependencies_parsed_at":"2025-05-14T11:51:21.312Z","dependency_job_id":"fbbd47ab-7612-4021-afb8-611c8adea217","html_url":"https://github.com/madspaaskesen/sacred-backend-starter","commit_stats":null,"previous_names":["madspaaskesen/sacred-backend-starter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/madspaaskesen/sacred-backend-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madspaaskesen%2Fsacred-backend-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madspaaskesen%2Fsacred-backend-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madspaaskesen%2Fsacred-backend-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madspaaskesen%2Fsacred-backend-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madspaaskesen","download_url":"https://codeload.github.com/madspaaskesen/sacred-backend-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madspaaskesen%2Fsacred-backend-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31554091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eslint","expressjs","javascript","jest","jwt","jwt-authentication","nodejs","prettier","prisma"],"created_at":"2025-05-22T19:17:45.939Z","updated_at":"2026-04-08T11:32:41.714Z","avatar_url":"https://github.com/madspaaskesen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🕊️ Sacred Backend Starter\n\nA clean and secure Node.js + Express backend starter with JWT auth, Prisma, and full test coverage — made to grow sacred projects.\n\nPerfect for starting new API projects or cloning into sacred ecosystems like **Sacred-AI** or **MySiteChart**.\n\n---\n\n![Node.js](https://img.shields.io/badge/Node.js-18.x-green)\n![License](https://img.shields.io/github/license/madspaaskesen/sacred-backend-starter)\n![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)\n![Tests](https://img.shields.io/badge/tests-passing-brightgreen)\n\n---\n\n## ✨ Features\n\n- Express.js + Prisma\n- JWT authentication (`id` + `name` only in payload)\n- Secure password handling with bcrypt\n- Auth routes: `/auth/register`, `/auth/login`\n- Protected user update: `PATCH /user/:id`\n- `.env`-based config\n- Prettier + ESLint formatting\n- Jest + Supertest tests\n- No migrations included (clean start)\n\n---\n\n## 🚀 Getting Started\n\n```bash\ngit clone https://github.com/sacred-ai/sacred-backend-starter.git\ncd sacred-backend-starter\nnpm install\n```\n\n### 🔧 Configure environment\n\nCreate a `.env` file from `.env.example`:\n\n```env\nDATABASE_URL=postgresql://...\nJWT_SECRET=your-secret\nCORS_ORIGIN=http://localhost:5173\n```\n\n### 🧱 Setup DB\n\n```bash\nnpx prisma generate\nnpx prisma migrate dev --name init\n```\n\n### ▶️ Start the server\n\n```bash\nnpm run dev\n```\n\n---\n\n## 🧪 Running Tests\n\n```bash\nnpm run test\n```\n\nTests are located in `/tests` and include full auth + user update coverage.\n\n---\n\n## 📦 Scripts\n\n| Script             | Description                            |\n|--------------------|----------------------------------------|\n| `npm run dev`      | Dev server with nodemon                |\n| `npm run start`    | Run production server                  |\n| `npm run lint`     | Lint the code                          |\n| `npm run format`   | Prettier format the project            |\n| `npm run test`     | Run all Jest + Supertest tests         |\n| `npx prisma studio`| Visual DB browser                      |\n\n---\n\n## 🌐 Related Projects\n\n- 🕊️ [Sacred-AI](https://sacred-ai.com)\n- 📈 [MySiteChart](https://mysitechart.com)\n- 🛠️ [MP-IT](https://mp-it.dk)\n- 🧵 [DDD Favoritter](https://ddd-favoritter.dk)\n\n---\n\nMade with clarity and care by [@mads](https://github.com/madspaaskesen) @ [@sacred-ai](https://github.com/Sacred-AI) 💛","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadspaaskesen%2Fsacred-backend-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadspaaskesen%2Fsacred-backend-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadspaaskesen%2Fsacred-backend-starter/lists"}