{"id":48893360,"url":"https://github.com/emreaaga/croco-fullstack","last_synced_at":"2026-04-16T10:02:41.661Z","repository":{"id":318866508,"uuid":"1076709358","full_name":"emreaaga/croco-fullstack","owner":"emreaaga","description":"Secure full-stack built with Next.js, Express.js, and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2025-11-21T08:02:24.000Z","size":2350,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-21T10:07:52.422Z","etag":null,"topics":["express-js","next-js","postgresql","react","typescript"],"latest_commit_sha":null,"homepage":"https://croco-dashboard.vercel.app","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/emreaaga.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-15T08:34:58.000Z","updated_at":"2025-11-21T08:02:27.000Z","dependencies_parsed_at":"2025-10-21T09:09:53.375Z","dependency_job_id":null,"html_url":"https://github.com/emreaaga/croco-fullstack","commit_stats":null,"previous_names":["emreaaga/croco-backend","emreaaga/croco-fullstack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emreaaga/croco-fullstack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emreaaga%2Fcroco-fullstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emreaaga%2Fcroco-fullstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emreaaga%2Fcroco-fullstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emreaaga%2Fcroco-fullstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emreaaga","download_url":"https://codeload.github.com/emreaaga/croco-fullstack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emreaaga%2Fcroco-fullstack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31880884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["express-js","next-js","postgresql","react","typescript"],"created_at":"2026-04-16T10:02:38.809Z","updated_at":"2026-04-16T10:02:41.656Z","avatar_url":"https://github.com/emreaaga.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# ⚡ Fullstack Admin Dashboard\n\nSecure admin panel featuring **JWT authentication**, **Role-Based Access Control (RBAC)**, and a clean **REST API**.\n\n**Auth:** HTTP-only cookies | **DB:** PostgreSQL (Drizzle ORM) | **Validation:** Zod | **Tests:** Jest + Supertest\n\n\u003cbr\u003e\n\n### 🖼️ Preview\n\n| Login Page                        | Dashboard                                 | Users Table                       |\n| --------------------------------- | ----------------------------------------- | --------------------------------- |\n| ![Login](./screenshots/login.png) | ![Dashboard](./screenshots/dashboard.png) | ![Users](./screenshots/users.png) |\n\n\u003c/div\u003e\n\n---\n\n## 🧩 About\n\n_This is a concise fullstack admin application with the following key features:_\n\n- Authentication via JWT stored in **HTTP-only cookies**\n- Role-Based Access Control (**admin / user**)\n- Typed validation (**Zod**) for all routes\n- Security middleware (Helmet, rate-limit, CORS, compression)\n- Robust integration tests using **Jest + Supertest**\n\n---\n\n## 🧰 Tech Stack\n\n**Backend:**\n\n- Node.js (Express)\n- PostgreSQL + Drizzle ORM\n- Zod (validation)\n- Jest + Supertest (testing)\n- pnpm (package manager)\n\n**Frontend:**\n\n- React + Vite\n- TypeScript\n- Tailwind CSS + Shadcn(UI library)\n- Axios\n- React Router\n\n**DevOps / Tools:**\n\n- Docker\n- ESLint + Prettier\n- GitHub Actions (optional CI/CD)\n\n## ⚙️ Getting Started\n\n\u003e The backend uses **pnpm**.\n\n### 🪜 Prerequisites\n\n`npm i -g pnpm`\nInstallation and Setup\n\n1. Clone the repository:\n\n```bash\n1.1) git clone [https://github.com/emreaaga/croco-fullstack.git](https://github.com/emreaaga/croco-fullstack.git)\n1.2) cd croco-fullstack\n```\n\n2. Backend Setup \u0026 Run:\n\n```bsh\n2.1) pnpm install\n2.2) pnpm dev\n```\n\n3. Environment Variables:\n   `cp .env.example .env` - Set your own values in the newly created .env file.\n\n4. Frontend Setup (Optional):\n   4.1) `cd frontend` 4.2) `npm install` 4.3) `npm run dev`\n\n## 🧪 Tests\n\nRun the integration tests using the following command: `pnpm test`\n\nTest User Credentials\n\n\u003e During testing, an admin user is automatically created and available for immediate login (no seeding required):\n\n- **email:** test@gmail.com\n- **password:** test1234\n\nThe tests cover: **_authentication_**, **_user management_**, and **_RBAC_**. Database connections are properly closed after the tests complete.\n\n## ✨ Features\n\n- JWT Authentication (via HTTP-only cookies)\n- Role-Based Access Control (admin/user)\n- REST API with Zod validation\n- Security Middleware: Helmet, CORS, rate-limit, compression\n- Integration Tests (Jest + Supertest)\n- Auto-Admin Creation after running pnpm test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femreaaga%2Fcroco-fullstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femreaaga%2Fcroco-fullstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femreaaga%2Fcroco-fullstack/lists"}