{"id":18594685,"url":"https://github.com/ernitingarg/typescript-fastify-postgres-prisma-auth-api","last_synced_at":"2026-04-10T12:31:56.357Z","repository":{"id":203325778,"uuid":"709313495","full_name":"ernitingarg/typescript-fastify-postgres-prisma-auth-api","owner":"ernitingarg","description":"Auth api using nodejs, typescript, fastify, zod, prisma, postgres, tap","archived":false,"fork":false,"pushed_at":"2023-11-05T09:45:54.000Z","size":437,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-16T12:13:05.923Z","etag":null,"topics":["auth-api","docker","docker-compose","fastify","github-actions","jwt-authentication","nodejs","pino","postgresql","postman","prisma-orm","tap","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/ernitingarg.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}},"created_at":"2023-10-24T13:20:22.000Z","updated_at":"2024-02-15T16:35:25.000Z","dependencies_parsed_at":"2023-11-05T09:25:57.955Z","dependency_job_id":null,"html_url":"https://github.com/ernitingarg/typescript-fastify-postgres-prisma-auth-api","commit_stats":null,"previous_names":["ernitingarg/typescript-fastify-postgres-auth-microservice","ernitingarg/typescript-fastify-prisma-postgres-auth-api","ernitingarg/typescript-fastify-postgres-prisma-auth-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ernitingarg/typescript-fastify-postgres-prisma-auth-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Ftypescript-fastify-postgres-prisma-auth-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Ftypescript-fastify-postgres-prisma-auth-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Ftypescript-fastify-postgres-prisma-auth-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Ftypescript-fastify-postgres-prisma-auth-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ernitingarg","download_url":"https://codeload.github.com/ernitingarg/typescript-fastify-postgres-prisma-auth-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ernitingarg%2Ftypescript-fastify-postgres-prisma-auth-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31642742,"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":["auth-api","docker","docker-compose","fastify","github-actions","jwt-authentication","nodejs","pino","postgresql","postman","prisma-orm","tap","typescript"],"created_at":"2024-11-07T01:16:39.507Z","updated_at":"2026-04-10T12:31:56.278Z","avatar_url":"https://github.com/ernitingarg.png","language":"TypeScript","readme":"# typescript-fastify-auth-microservice\n\n## Prerequisites installation\n\n### Init\n\n```bash\nnpm init -y\nnpx tsc --init\n```\n\n### Dependencies\n\n```\nnpm install fastify fastify-zod zod zod-to-json-schema @fastify/swagger @fastify/swagger-ui @fastify/jwt @prisma/client bcrypt\nnpm install pino pino-pretty\n\nnpm install @faker-js/faker tap ts-mock-imports\n```\n\n### Dev Dependencies\n\n```\nnpm install -D ts-node ts-node-dev typescript @types/node dotenv nodemon @types/bcrypt\nnpm install -D eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin\nnpm install -D @types/tap sinon\n```\n\n### Prisma Initialization\n\n```\nnpx prisma init --datasource-provider postgresql\n```\n\n### Prisma db Migration\n\n```\nnpx prisma migrate dev --name init\n```\n\n### Launch prisma studio\n\n```\nnpx prisma studio\n```\n\n### healthcheck\n\n- http://localhost:5000/api/health\n- http://localhost:5000/api/health/db\n\n### Swagger documentation\n\nhttp://localhost:5000/docs\n\n## Run docker locally\n\nTo run database directly inside container, please follow below steps:\n\n- Download docker\n\n  - [Windows](https://docs.docker.com/desktop/install/windows-install/)\n  - [Ubuntu](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository)\n\n- To change environment variables, please use [.env](.env.example) file\n\n- Run db docker container and app\n\n```base\nnpm run start\n```\n\n- Run database docker container\n\n```bash\nnpm run start:db\n```\n\n- To stop docker container\n\n```bash\nctrl c\nOR\ndocker-compose down\n\n# To stop with data/volumne cleanup\ndocker-compose down -v --rmi all\n```\n\n- To see containers logs\n\n```bash\ndocker-compose logs postgres\n```\n\n- To connect to Postgres database manually\n\n```bash\n docker exec -it postgres bash\n psql -U admin -d postgresdb\n```\n\n- To see all tables in database\n\n```bash\n\\dt;\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernitingarg%2Ftypescript-fastify-postgres-prisma-auth-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fernitingarg%2Ftypescript-fastify-postgres-prisma-auth-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fernitingarg%2Ftypescript-fastify-postgres-prisma-auth-api/lists"}