{"id":20210934,"url":"https://github.com/johnhany97/mern-auth","last_synced_at":"2026-04-13T14:33:27.685Z","repository":{"id":40941713,"uuid":"196390636","full_name":"johnhany97/mern-auth","owner":"johnhany97","description":"MERN Authentication boilerplate","archived":false,"fork":false,"pushed_at":"2023-01-04T04:25:18.000Z","size":1807,"stargazers_count":1,"open_issues_count":21,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-25T14:01:57.107Z","etag":null,"topics":["authentication","express","jwt","mern","mern-stack","mongodb","nodejs","passportjs","react","redux"],"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/johnhany97.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":"2019-07-11T12:31:22.000Z","updated_at":"2024-05-17T15:22:00.000Z","dependencies_parsed_at":"2023-02-01T20:01:16.456Z","dependency_job_id":null,"html_url":"https://github.com/johnhany97/mern-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnhany97/mern-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnhany97%2Fmern-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnhany97%2Fmern-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnhany97%2Fmern-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnhany97%2Fmern-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnhany97","download_url":"https://codeload.github.com/johnhany97/mern-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnhany97%2Fmern-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31757479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T13:27:56.013Z","status":"ssl_error","status_checked_at":"2026-04-13T13:21:23.512Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["authentication","express","jwt","mern","mern-stack","mongodb","nodejs","passportjs","react","redux"],"created_at":"2024-11-14T05:50:14.482Z","updated_at":"2026-04-13T14:33:27.624Z","avatar_url":"https://github.com/johnhany97.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Authentication: MERN\n\nDemonstrated in this project is a MERN stack project that demonstrates a full authentication cycle following with modern JavaScript standards.\n\n## Acknowledgment\n\nThis is based off of a tutorial published by [Rishi Prasad in Bits and Pieces](https://blog.bitsrc.io/build-a-login-auth-app-with-mern-stack-part-1-c405048e3669) but extended to use ES6, Docker, and some other additional bits and pieces (pun intended) all over. Thanks, Rishi, for the amazing guide!\n\n## Setup\nYou'll need to add your config file which has the required props for your various enviornments, an example is demonstrated as follows:\n```json\n{\n  \"development\": {\n    \"MONGO_URI\": \"mongo://name:password@some_dev_link_for_dev_db:port\",\n    \"SECRET_OR_KEY\": \"someSecretY'all\"\n  },\n  \"prod\": {\n    \"MONGO_URI\": \"mongo://name:password@some_dev_link_for_prod_db:port\",\n    \"SECRET_OR_KEY\": \"someProdSecretY'all\"\n  }\n}\n```\nYou'll also need to run a node installation\n```\nnpm i\n```\n\n## Running\nDevelopment mode\n```\nnpm run dev\n```\nProduction mode\n```\nnpm run prod\n```\nWatch mode (using `nodemon`)\n```\nnpm run watch\n```\nUsing Docker\n```\ndocker run -p 5000:5000 johnhany97/mern-auth\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnhany97%2Fmern-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnhany97%2Fmern-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnhany97%2Fmern-auth/lists"}