{"id":26321822,"url":"https://github.com/haravetskyy/magic-hut","last_synced_at":"2026-05-17T00:08:17.682Z","repository":{"id":273095627,"uuid":"918622907","full_name":"haravetskyy/magic-hut","owner":"haravetskyy","description":"An authentication service for Harbor Task","archived":false,"fork":false,"pushed_at":"2025-02-23T18:44:01.000Z","size":6654,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T19:35:03.251Z","etag":null,"topics":["authentication","nextjs","prisma-orm","shadcn-ui","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haravetskyy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-01-18T12:28:42.000Z","updated_at":"2025-02-23T18:55:07.000Z","dependencies_parsed_at":"2025-01-18T17:18:28.866Z","dependency_job_id":"68c72685-9b36-41ba-8369-2c9a8b8b2edb","html_url":"https://github.com/haravetskyy/magic-hut","commit_stats":null,"previous_names":["haravetskyy/magic-hut"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haravetskyy%2Fmagic-hut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haravetskyy%2Fmagic-hut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haravetskyy%2Fmagic-hut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haravetskyy%2Fmagic-hut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haravetskyy","download_url":"https://codeload.github.com/haravetskyy/magic-hut/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243753976,"owners_count":20342543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["authentication","nextjs","prisma-orm","shadcn-ui","typescript"],"created_at":"2025-03-15T16:18:35.600Z","updated_at":"2025-10-09T20:20:38.423Z","avatar_url":"https://github.com/haravetskyy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Magic Hut \u003cimg src=\"./public/magic-hut-beige.svg\" alt=\"Logo\" width=\"30\" style=\"vertical-align: middle;\" align=\"right\"\u003e\n\nAn authentication service for [Harbor Task](https://github.com/haravetskyy/harbor-task).\n\n---\n\nHere are instructions on how to use the code from this project to implement authentication in your own project.\n\n## **Prerequisites**\n\nEnsure you have the following installed:\n\n- **Node.js** (v18 or later)\n- **pnpm**\n- **Docker** and **Docker Compose**\n\nAlso ensure you have set up the following things:\n\n- **Arcjet** key\n- **better-auth** secret\n- **SendGrid** API key\n- **Email address** with _SMTP_\n\n## **Getting Started**\n\n### **1. Clone the Repository**\n\n```bash\ngit clone https://github.com/haravetskyy/harbor-task.git\ncd harbor-task\n```\n\n---\n\n### **2. Configure Environment Variables**\n\nThe project requires environment variables to function properly. To assist you, `.env.example` file is provided in the `root` directory.\n\nThese file serves as template, listing all necessary variables. You need to copy it to its respective `.env` files and fill it with valid data specific to your setup.\n\n---\n\n### **3. Install Dependencies**\n\nInstall all required Node.js packages :\n\n```bash\npnpm install\n```\n\n---\n\n### **4. Run All Essential Scripts**\n\nYou need to execute these scripts to ensure everything works correctly.\n\n#### **4.1. Start the Development Database**\n\n```bash\npnpm db:dev:up\n```\n\nThis script initializes and starts the development database.\n\n#### **4.2. Apply Prisma Migrations**\n\n```bash\npnpm prisma:dev:deploy\n```\n\nThis command applies the Prisma migrations to the database.\n\n#### **4.3. Generate Prisma Client**\n\n```bash\npnpm prisma:generate\n```\n\nThis script generates the Prisma client based on the Prisma schema.\n\n---\n\n### **5. Start the Application**\n\n```bash\npnpm dev\n```\n\nOpen [http://localhost:1050](http://localhost:1050) with your browser to see the result.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharavetskyy%2Fmagic-hut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharavetskyy%2Fmagic-hut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharavetskyy%2Fmagic-hut/lists"}