{"id":26348476,"url":"https://github.com/sandylib/node-typescript-api-starter","last_synced_at":"2026-05-02T17:36:39.527Z","repository":{"id":41590869,"uuid":"237113454","full_name":"sandylib/node-typescript-api-starter","owner":"sandylib","description":"node-auentication-api","archived":false,"fork":false,"pushed_at":"2023-01-24T01:17:09.000Z","size":8183,"stargazers_count":1,"open_issues_count":28,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T08:14:54.977Z","etag":null,"topics":["express","expressjs","node","node-authentication-api","typescript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/sandylib.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}},"created_at":"2020-01-30T00:57:00.000Z","updated_at":"2020-12-04T09:09:20.000Z","dependencies_parsed_at":"2023-02-13T08:15:48.166Z","dependency_job_id":null,"html_url":"https://github.com/sandylib/node-typescript-api-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sandylib/node-typescript-api-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandylib%2Fnode-typescript-api-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandylib%2Fnode-typescript-api-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandylib%2Fnode-typescript-api-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandylib%2Fnode-typescript-api-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandylib","download_url":"https://codeload.github.com/sandylib/node-typescript-api-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandylib%2Fnode-typescript-api-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262249741,"owners_count":23282045,"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":["express","expressjs","node","node-authentication-api","typescript"],"created_at":"2025-03-16T08:14:57.313Z","updated_at":"2025-10-16T16:15:24.203Z","avatar_url":"https://github.com/sandylib.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# steps for running it up\n\n## install packages should be separate for client and api. \n\n### `cd api ` run `npm install`\n### `cd client ` run `npm install`\n\n## running api has denpendence with mongodb and redis, requires docker installed in your local machine\n\n### in the root of your project run `npm run up` will up mongodb, redis and api server\n\n## running client react app authentication \n\n### `cd client` run `npm install`\n\n# if you are lost, here is the youtube link:\n\nhttps://www.youtube.com/watch?v=Ujk3emNC6L0\n\n\n# node-auth\n\n## curl\n\n```sh\ncurl -v  localhost:3000/api/v1/home --cookie 'sid=s%3A_zHhKduFB-uggbg8vEJ4XlZoAlsDkRdT.nE%2FxxAvYDuBg22wJ%2BO7A8evKnrUllgg3Ar7gJq9NhEY'\n\ncurl  POST localhost:3000/api/v1/login -H 'Content-Type: application/json' \\\n  -d '{\"email\": \"sandy@gmail.com\", \"password\": \"Secret12\"}'\n\ncurl -v -X POST localhost:3000/api/v1/register -H 'Content-Type: application/json' \\\n  -d '{\"email\": \"sandy@gmail.com\", \"name\": \"sandy\", \"password\": \"Secret12\", \"passwordConfirmation\": \"Secret12\"}'\n\ncurl -v -X POST localhost:3000/api/v1/register -H 'Content-Type: application/json' \\\n  --cookie 'sid=s%3ACuKP7VRYH1IRgG_jq_RP6daWnPPPYyhd.X0ErxoIqbgqLkW3wmO4QnTvxp55YDFafwKNJ%2Bmt5m0Y'\n```\n\n## docker command\n```sh\ndocker exec -it node-au_db_1 mongo  -u admin -p secret auth\n\ndocker exec -it node-au_cache_1 redis-cli -a secret\nscan 0\n\n// to see the session infomation\nget \"sess:CuKP7VRYH1IRgG_jq_RP6daWnPPPYyhd\"\n\n// to see session expired time\n\nttl \"sess:CuKP7VRYH1IRgG_jq_RP6daWnPPPYyhd\"\n\n```\n\n### mongo\n```sh\n//query\ndb.users.find({}).pretty()\n//delete\ndb.users.deleteMany({})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandylib%2Fnode-typescript-api-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandylib%2Fnode-typescript-api-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandylib%2Fnode-typescript-api-starter/lists"}