{"id":21891137,"url":"https://github.com/thangtranse/node-express-mongoose-template","last_synced_at":"2026-04-03T23:35:59.496Z","repository":{"id":55640301,"uuid":"523164973","full_name":"thangtranse/node-express-mongoose-template","owner":"thangtranse","description":"Basic structure ExpressJS using MongoDB and Redis. Build Login/Logout with JWT Authentication","archived":false,"fork":false,"pushed_at":"2024-05-15T05:06:36.000Z","size":25267,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T22:33:40.030Z","etag":null,"topics":["api","api-authentication","express-js","express-middleware","expressjs","jwt","jwt-auth","jwt-authentication","jwt-token","mongodb","mongoose","nodejs","rest-api"],"latest_commit_sha":null,"homepage":"","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/thangtranse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://me.momo.vn/donateMYWEthanks","https://www.paypal.com/paypalme/thangtm"]}},"created_at":"2022-08-10T01:48:23.000Z","updated_at":"2023-02-20T03:14:31.000Z","dependencies_parsed_at":"2023-10-02T02:21:51.616Z","dependency_job_id":"74a66259-47d1-458f-b0bc-fddbc4185e99","html_url":"https://github.com/thangtranse/node-express-mongoose-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangtranse%2Fnode-express-mongoose-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangtranse%2Fnode-express-mongoose-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangtranse%2Fnode-express-mongoose-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thangtranse%2Fnode-express-mongoose-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thangtranse","download_url":"https://codeload.github.com/thangtranse/node-express-mongoose-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898458,"owners_count":20528341,"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":["api","api-authentication","express-js","express-middleware","expressjs","jwt","jwt-auth","jwt-authentication","jwt-token","mongodb","mongoose","nodejs","rest-api"],"created_at":"2024-11-28T12:20:13.454Z","updated_at":"2025-12-30T19:29:31.307Z","avatar_url":"https://github.com/thangtranse.png","language":"JavaScript","funding_links":["https://me.momo.vn/donateMYWEthanks","https://www.paypal.com/paypalme/thangtm"],"categories":[],"sub_categories":[],"readme":"# Repo basic!\n\n# Introduction\n\nThis is a sample repository collected from the experience of implementing projects and referring to other tutorial pages (I have cited sources in the last section).\nThe project includes:\n\n- [x] Implementing ExpressJS and router\n- [x] Connecting to MongoDb\n- [x] Connecting to Redis\n- [x] Services:\n  - [x] Register account\n  - [x] Login/Logout\n  - [x] Login with Google\n  - [x] Retrieve token when expired (no need to log in again)\n  - [x] Get a list of User authenticated by Token\n  - [x] Upload file\n  - [x] Mini CRM\n\n# System configuration\n\n1. Nodejs (up to v14.18.1)\n1. Redis (I use v6.2.6)\n1. MongoDb (I use v5.0.10): You can refer to this [repo](https://github.com/thangtranse/mongo) to use the `docker-image mongo`\n\n# ENV\n\n```sh\nPORT=3000\n\nMONGO_URL_CONNECT_1=\nMONGO_URL_CONNECT_2=\n\nREDIS_PORT=6379\nREDIS_HOST=\n\nACCESS_TOKEN_SECRET=\nREFRESH_TOKEN_SECRET=\n\nGOOGLE_CLIENT_ID=\n```\n\nTo get `ACCESS_TOKEN_SECRET` and `REFRESH_TOKEN_SECRET`, please run the `bash` command below, then use any KEY for both values.\n\n```sh\nnode ./src/helpers/generate_key.js\n```\n\nor\n\n```sh\nyarn token\n```\n\n# Extensions Node\n\n1. [redis-commander](https://www.npmjs.com/package/redis-commander)\n\n# References\n\n### 1. From the manufacturer\n\n### 2. From Blog\n\n1. https://www.youtube.com/c/TipsJavascript\n1. https://anonystick.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthangtranse%2Fnode-express-mongoose-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthangtranse%2Fnode-express-mongoose-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthangtranse%2Fnode-express-mongoose-template/lists"}