{"id":20036401,"url":"https://github.com/taiseen/um","last_synced_at":"2026-04-09T08:19:09.189Z","repository":{"id":170787900,"uuid":"647025870","full_name":"taiseen/um","owner":"taiseen","description":"Universe Management","archived":false,"fork":false,"pushed_at":"2023-08-12T20:29:09.000Z","size":239,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T18:51:15.584Z","etag":null,"topics":["cors","express","global-error-handling","interface","micro-service","middleware","model","mongoose","rest-api","router","schema","validation","zod"],"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/taiseen.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":"2023-05-29T22:44:16.000Z","updated_at":"2023-07-07T20:27:54.000Z","dependencies_parsed_at":"2025-01-12T18:51:33.573Z","dependency_job_id":null,"html_url":"https://github.com/taiseen/um","commit_stats":null,"previous_names":["taiseen/um"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiseen%2Fum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiseen%2Fum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiseen%2Fum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taiseen%2Fum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taiseen","download_url":"https://codeload.github.com/taiseen/um/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241465549,"owners_count":19967323,"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":["cors","express","global-error-handling","interface","micro-service","middleware","model","mongoose","rest-api","router","schema","validation","zod"],"created_at":"2024-11-13T10:12:18.824Z","updated_at":"2026-04-09T08:19:09.151Z","avatar_url":"https://github.com/taiseen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e 30 - May - 2023\n\n# Auth Service\n\n## Microservice Architecture...\n\n- npm init -y\n- yarn add -D typescript\n- yarn add -D @types/express\n- yarn add -D @types/cors\n- yarn add -D ts-node-dev\n- yarn add @types/bcrypt\n- yarn add @types/jsonwebtoken\n- yarn add @types/cookie-parser\n- yarn add express\n- yarn add cors\n- yarn add mongoose\n- yarn add dotenv\n- yarn add winston `have \"node module\" incompatible issue`\n- yarn add winston-daily-rotate-file\n- yarn add zod `have \"node module\" incompatible issue`\n- yarn add http-status\n- yarn add bcrypt\n- yarn add jsonwebtoken\n- yarn add cookie-parser\n\n\u003cbr /\u003e\n\n```\ntsc --init\n```\n\n```js\n\"scripts\": {\n    \"start\": \"ts-node-dev --respawn --transpile-only src/connection\"\n}\n\nyarn start\n```\n\n\u003cbr /\u003e\n\n## Project coding rules setup\n\n| Package                | Usage                                               |\n| ---------------------- | --------------------------------------------------- |\n| Eslint                 | Enforce rules                                       |\n| Prettier               | Code formatter                                      |\n| Eslint-Config-Prettier | format conflict resolver                            |\n| [Husky][link]          | Pre-commit hook - for check Eslint + Prettier rules |\n| Lint-stage             | Only check `staging file change` for git commit     |\n\n- yarn add -D eslint\n- yarn add -D @typescript-eslint/parser\n- yarn add -D @typescript-eslint/eslint-plugin\n- yarn add -D @typescript-eslint/eslint-plugin\n- yarn add -D prettier\n- yarn add -D eslint-config-prettier\n- yarn add -D husky\n- yarn husky install\n- yarn add -D lint-staged `have \"node module\" incompatible issue`\n\n```\nnvm list\n\nnvm install 18.16.0\n\nnvm use 18.16.0 [run as administrator at cmd]\n```\n\n\u003cbr /\u003e\n\n```\n.eslintrc\n.eslintignore\n.prettierrc\n```\n\n```js\n\"scripts\": {\n    \"start\": \"ts-node-dev --respawn --transpile-only src/connection\",\n    \"lint:check\": \"eslint --ignore-path .eslintignore --ext .js,.ts .\",\n    \"lint:fix\": \"eslint . --fix\",\n    \"prettier:check\": \"prettier --ignore-path .gitignore --write \\\"**/*.+(js|ts|json)\\\"\",\n    \"prettier:fix\": \"prettier --write .\",\n    \"lint-prettier\": \"yarn lint:check \u0026\u0026 yarn prettier:check\"\n},\n\"lint-staged\": {\n    \"src/**/*.ts\": \"yarn lint-prettier\"\n},\n```\n\n```js\nyarn husky add .husky/pre-commit \"yarn lint-staged\"\n```\n\n[link]: https://typicode.github.io/husky/getting-started.html\n\n## Project Sections:-\n\n- user\n  - student\n  - admin\n  - faculty\n- academy semester\n- academy department\n- academy faculty\n- user auth login\n- refresh token\n- role base resource access\n\n## Learning Context:-\n\n- File \u0026 Folder Structure...\n- Project Architecture...\n- Eslint Configuration\n- TypeScript Implementation...\n- User input verification by zod middleware\n- User role base resource access\n- Express Request type extend by index.d.ts\n- HOC - Higher Order Function for async(req, res)\n- by function call pick object property\n- global error handling...\n- Using of middleware concept\n- CRUD Operation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaiseen%2Fum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaiseen%2Fum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaiseen%2Fum/lists"}