{"id":17757817,"url":"https://github.com/anicmarko9/nest-guard","last_synced_at":"2026-04-10T13:32:02.802Z","repository":{"id":258557796,"uuid":"868068468","full_name":"anicmarko9/nest-guard","owner":"anicmarko9","description":"Nest.js app for JWT Authentiation \u0026 RBAC Authorization","archived":false,"fork":false,"pushed_at":"2025-06-14T14:58:25.000Z","size":1114,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-15T18:39:55.686Z","etag":null,"topics":["jestjs","nestjs","nodejs","postgres","redis","typeorm","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/anicmarko9.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":"2024-10-05T11:52:25.000Z","updated_at":"2025-06-14T14:55:44.000Z","dependencies_parsed_at":"2024-12-14T05:41:06.046Z","dependency_job_id":"975a0e18-bce5-43fd-8141-93964e8a796b","html_url":"https://github.com/anicmarko9/nest-guard","commit_stats":null,"previous_names":["anicmarko9/nest-guard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anicmarko9/nest-guard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicmarko9%2Fnest-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicmarko9%2Fnest-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicmarko9%2Fnest-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicmarko9%2Fnest-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anicmarko9","download_url":"https://codeload.github.com/anicmarko9/nest-guard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anicmarko9%2Fnest-guard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31645284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: 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":["jestjs","nestjs","nodejs","postgres","redis","typeorm","typescript"],"created_at":"2024-10-26T17:08:58.392Z","updated_at":"2026-04-10T13:32:02.780Z","avatar_url":"https://github.com/anicmarko9.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nest.js app for JWT Authentiation \u0026 RBAC Authorization\n\nA backend service built with **Nest.js** to handle user registration, login, email verification, organization creation, and user roles using JWT-based authentication and role-based authorization. Features asynchronous email sending with Redis queues.\n\n## Tech Stack\n\n- **TypeScript**\n- **Nest.js** with **TypeORM** (PostgreSQL)\n- **Bull Queue** (Redis)\n- **JWT** Authentication\n- **SendGrid** (for emails)\n- **Prettier**, **ESLint**, **Jest**\n\n## Features\n\n- **User Registration**: Register with email confirmation via SendGrid.\n- **Email Verification**: Verify email to receive a JWT.\n- **Login**: Sign in to generate JWT cookie.\n- **Organization Management**: Create organizations, invite users, assign roles.\n- **Role-based Authorization**: Assign roles and control access to endpoints based on permissions.\n\n## Setup Instructions\n\n### 1. Clone the repository\n\n`git clone https://github.com/anicmarko9/nest-guard.git`\n\n### 2. Checkout to the new branch\n\n`git checkout -b features/your-name`\n\n### 3. Install dependencies\n\n`npm ci`\n\n### 4. Start Redis (in a separate terminal)\n\n`sudo service redis-server start`\n\n### 5. Create a PostgreSQL database (if you haven't)\n\n`psql -U postgres -p 5432 -c 'create database nest_guard_db;'`\n\n### 6. Create a SendGrid account\n\n- Sign up at [SendGrid](https://sendgrid.com/) and generate your API key.\n\n### 7. Configure environment variables\n\n- Copy the `.env.example` file and create your own `.env` file in the root directory\n\n### 8. Start development server\n\n`npm run dev`\n\n### 9. Running Tests \u0026 Linters\n\n- **typecheck**: `npm run typecheck`\n- **eslint**: `npm run ci:format`\n- **prettier**: `npm run ci:lint`\n- **jest**: `npm run ci:test`\n- **build**: `npm run build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicmarko9%2Fnest-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanicmarko9%2Fnest-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanicmarko9%2Fnest-guard/lists"}