{"id":18951516,"url":"https://github.com/efenstakes/authentication-api-type-graphql","last_synced_at":"2026-04-15T14:02:25.087Z","repository":{"id":193664156,"uuid":"689257244","full_name":"efenstakes/authentication-api-type-graphql","owner":"efenstakes","description":"A nodejs API authentication system using apollo server, type-graphql, typegoose, typescript, javascript, mongodb, AWS Lambda and Docker.","archived":false,"fork":false,"pushed_at":"2023-09-09T09:17:26.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T00:46:10.488Z","etag":null,"topics":["aws-lambda","docker","javascript","mongodb","nodejs","serverless-framework","type-graphql","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/efenstakes.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-09-09T08:42:17.000Z","updated_at":"2023-09-09T09:11:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"b90a701e-f5b2-4f19-946d-b7b8d32874ce","html_url":"https://github.com/efenstakes/authentication-api-type-graphql","commit_stats":null,"previous_names":["efenstakes/authentication-api-type-graphql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/efenstakes/authentication-api-type-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efenstakes%2Fauthentication-api-type-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efenstakes%2Fauthentication-api-type-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efenstakes%2Fauthentication-api-type-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efenstakes%2Fauthentication-api-type-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efenstakes","download_url":"https://codeload.github.com/efenstakes/authentication-api-type-graphql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efenstakes%2Fauthentication-api-type-graphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281074242,"owners_count":26439421,"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-26T02:00:06.575Z","response_time":61,"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":["aws-lambda","docker","javascript","mongodb","nodejs","serverless-framework","type-graphql","typescript"],"created_at":"2024-11-08T13:28:19.249Z","updated_at":"2025-10-26T07:38:38.928Z","avatar_url":"https://github.com/efenstakes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication API\n\nThe code in this repo is fully functioning authentication API using graphql apollo, type-graphql, typegoose, nodejs, typescript, javascript, jwt tokens, express and mongodb.\n\n## 🚀 Start\n\nTo start this project, first clone the code using git:\n\n```sh\ngit clone https://github.com/efenstakes/authentication-api-type-graphql api\n```\n\nNavigate to the project directory:\n\n```sh\ncd api\n```\n\nInstall dependencies:\n\n```sh\nyarn install\n```\n\nCreate .env in the src/ directory with below keys:\n\n```sh\ntouch src/.env\n```\n\nDB_URL=\u003cyour-value\u003e\nPORT=\u003cyour-value\u003e\nACCESS_TOKEN_SECRET=\u003cyour-value\u003e\nREFRESH_TOKEN_SECRET=\u003cyour-value\u003e\n\n\n\nTo start the API run:\n\n```sh\nyarn dev\n```\n\n\nTo build the API run:\n\n```sh\nyarn build\n```\n\nTo deploy the API to AWS Lambda, ensure you install serverless and run:\n\n```sh\nyarn build \u0026\u0026 serverless deploy\n```\n\n### Alternatively, you can use docker to run the api.\n\nBuild the Docker image:\n\n```sh\ndocker build -t auth-api .\n```\n\nStart the Docker container:\n\n```sh\ndocker run -p 8080:8080 auth-api\n```\n\n\n## Note For SQL users\nTypegoose can easily be replaced by an SQL ORM like TypeORM and this API will work perfectly with MySQL, Postgres or any other MYSQL database.\n\n\n## Contact\nContact me through.\nefenstakes101@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefenstakes%2Fauthentication-api-type-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefenstakes%2Fauthentication-api-type-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefenstakes%2Fauthentication-api-type-graphql/lists"}