{"id":31554615,"url":"https://github.com/uchkunrakhimow/hrcs-api","last_synced_at":"2026-04-12T11:47:04.911Z","repository":{"id":317183724,"uuid":"1066328761","full_name":"uchkunrakhimow/hrcs-api","owner":"uchkunrakhimow","description":"A Bun + Elysia.js REST API for HR candidate screening. Manages users, organizations, assignments, questions, and results with JWT auth, Prisma (PostgreSQL), and PDF exports.","archived":false,"fork":false,"pushed_at":"2025-09-29T11:06:21.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-29T12:29:47.373Z","etag":null,"topics":["api-rest","bun","elysia","elysia-api","hrcs","hrcs-api","postgresql","prisma"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uchkunrakhimow.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-29T10:36:56.000Z","updated_at":"2025-09-29T11:13:02.000Z","dependencies_parsed_at":"2025-09-29T12:29:50.817Z","dependency_job_id":null,"html_url":"https://github.com/uchkunrakhimow/hrcs-api","commit_stats":null,"previous_names":["uchkunrakhimow/hrcs-api"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/uchkunrakhimow/hrcs-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchkunrakhimow%2Fhrcs-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchkunrakhimow%2Fhrcs-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchkunrakhimow%2Fhrcs-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchkunrakhimow%2Fhrcs-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uchkunrakhimow","download_url":"https://codeload.github.com/uchkunrakhimow/hrcs-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uchkunrakhimow%2Fhrcs-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278373518,"owners_count":25976150,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-rest","bun","elysia","elysia-api","hrcs","hrcs-api","postgresql","prisma"],"created_at":"2025-10-04T21:11:16.244Z","updated_at":"2025-10-04T21:11:17.559Z","avatar_url":"https://github.com/uchkunrakhimow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# 🎯 HRCS API\n\n**HR candidate screening REST API built with Bun and Elysia.js**\n\n_Complete platform for managing users, organizations, assignments, tests, and results_\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Bun](https://img.shields.io/badge/Bun-1.2.22+-black.svg)](https://bun.sh/)\n[![Elysia.js](https://img.shields.io/badge/Elysia.js-Latest-blue.svg)](https://elysiajs.com/)\n[![PostgreSQL](https://img.shields.io/badge/PostgreSQL-14+-orange.svg)](https://postgresql.org/)\n[![TypeScript](https://img.shields.io/badge/TypeScript-Strict-blue.svg)](https://typescriptlang.org/)\n\n\u003c/div\u003e\n\n## 📋 Table of Contents\n\n- [✨ Features](#-features)\n- [🛠️ Tech Stack](#️-tech-stack)\n- [📋 Requirements](#-requirements)\n- [🚀 Getting Started](#-getting-started)\n- [⚙️ Environment Variables](#️-environment-variables)\n- [📡 API Overview](#-api-overview)\n- [📁 Project Structure](#-project-structure)\n- [🐳 Docker](#-docker)\n- [🔧 Development](#-development)\n- [🤝 Contributing](#-contributing)\n- [🔒 Security](#-security)\n- [📄 License](#-license)\n\n## ✨ Features\n\n- **🔐 Authentication**: JWT-based auth with register/login endpoints\n- **👥 User Management**: CRUD operations with role-based access control\n- **🏢 Organizations**: Multi-tenant isolation and management\n- **🧩 Assignments \u0026 Candidates**: Create, assign, and manage candidate lifecycle\n- **📝 Questions \u0026 Tests**: Multilingual question bank with test delivery\n- **📄 Results**: PDF export and result aggregations\n- **🩺 Health Checks**: Readiness and liveness monitoring endpoints\n\n## 🛠️ Tech Stack\n\n- **Runtime**: Bun\n- **Framework**: Elysia.js\n- **Database**: PostgreSQL\n- **ORM**: Prisma\n- **Authentication**: JWT\n- **Logging**: Pino (structured logging)\n\n## 📋 Requirements\n\n- Bun 1.2.22+\n- PostgreSQL 14+\n\n## 🚀 Getting Started\n\n1. **Install dependencies:**\n\n   ```bash\n   bun install\n   ```\n\n2. **Configure environment:**\n\n   ```bash\n   cp .env.example .env\n   ```\n\n3. **Set up database:**\n\n   ```bash\n   bunx prisma generate\n   bunx prisma db push\n   ```\n\n4. **Start development server:**\n   ```bash\n   bun run dev\n   ```\n\nServer will start on `http://localhost:3000` with API prefix `/api/v1`.\n\n## ⚙️ Environment Variables\n\n```env\n# Database\nDATABASE_URL=\"postgresql://user:password@localhost:5432/hrcs\"\n\n# Authentication\nJWT_SECRET=\"replace-with-strong-secret\"\n\n# Server\nCORS_ORIGIN=\"http://localhost:5173\"\nNODE_ENV=\"development\"\n\n# Email (optional)\nSMTP_HOST=\"localhost\"\nSMTP_PORT=1025\nSMTP_USER=\"\"\nSMTP_PASS=\"\"\nSMTP_SECURE=false\n```\n\n## 📡 API Overview\n\n**Authentication:**\n\n- `POST /api/v1/auth/register` - Register new user\n- `POST /api/v1/auth/login` - User login\n- `GET /api/v1/auth/me` - Get current user\n\n**Users:**\n\n- `GET /api/v1/users` - List users\n- `POST /api/v1/users` - Create user\n- `GET/PUT/DELETE /api/v1/users/:id` - User operations\n\n**Organizations:**\n\n- `GET /api/v1/organizations` - List organizations\n- `POST /api/v1/organizations` - Create organization\n- `GET/PUT/DELETE /api/v1/organizations/:id` - Organization operations\n\n**Assignments:**\n\n- `GET /api/v1/assignments` - List assignments\n- `POST /api/v1/assignments` - Create assignment\n- `GET/PUT/DELETE /api/v1/assignments/:id` - Assignment operations\n\n**Questions \u0026 Health:**\n\n- `GET /api/v1/questions` - List questions\n- `PUT /api/v1/questions/:id` - Update question\n- `GET /api/v1/health` - Health check\n\n**Authentication header for protected routes:**\n\n```\nAuthorization: Bearer \u003cjwt_token\u003e\n```\n\n## 📁 Project Structure\n\n```\nsrc/\n├── modules/\n│   ├── auth/                    # Authentication \u0026 JWT\n│   ├── user/                    # User management\n│   ├── organization/            # Organization management\n│   ├── assignment/              # Assignment operations\n│   ├── assignment-candidate/    # Candidate assignments\n│   ├── question/               # Question bank\n│   ├── result/                 # Test results \u0026 PDF export\n│   ├── health/                 # Health checks\n│   └── helpers/                # Utilities (email, jwt, logger)\n├── generated/                  # Prisma client (auto-generated)\n└── index.ts                   # Application entry point\n```\n\n## 🐳 Docker\n\n```bash\n# Build image\ndocker build -t hrcs-api .\n\n# Run container\ndocker run -p 3000:3000 \\\n  -e DATABASE_URL=\"postgresql://...\" \\\n  -e JWT_SECRET=\"your-secret\" \\\n  hrcs-api\n```\n\n## 🔧 Development\n\n- `bun run dev` – Start development server with hot reload\n- `bun run build` – Generate Prisma client and build project\n- `bunx prisma migrate dev --name \u003cmigration_name\u003e` – Create and apply database migration\n- `bunx prisma studio` – Open Prisma Studio to inspect database\n\n## 🔒 Security\n\nIf you discover a security vulnerability, please email the maintainer privately rather than opening a public issue. We take security seriously and will respond promptly to legitimate reports.\n\n## 📄 License\n\n[MIT](LICENSE) - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuchkunrakhimow%2Fhrcs-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuchkunrakhimow%2Fhrcs-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuchkunrakhimow%2Fhrcs-api/lists"}