{"id":20464715,"url":"https://github.com/romykundal/mern-auth","last_synced_at":"2026-04-06T21:31:21.660Z","repository":{"id":222255010,"uuid":"465452355","full_name":"romykundal/MERN-auth","owner":"romykundal","description":"Build functionality for user authentication on the front-end as well as the backend (You are free to use any third party library both on the front-end as well as the backend). a. A login page should take an email and a password to log the user in. b. A register page should take an email and a password to register the user. c. REST API routes “login” and “register” enabling the same functionality. d. The passwords have to be stored after hashing on the database. e. Access JWT tokens have to be refreshed every hour.","archived":false,"fork":false,"pushed_at":"2022-03-06T03:50:53.000Z","size":3659,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T12:24:28.861Z","etag":null,"topics":["authentication","aws","nodejs","react","solid-principles"],"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/romykundal.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-03-02T20:03:13.000Z","updated_at":"2024-02-13T06:04:49.000Z","dependencies_parsed_at":"2024-02-13T08:33:56.073Z","dependency_job_id":null,"html_url":"https://github.com/romykundal/MERN-auth","commit_stats":null,"previous_names":["romykundal/mern-auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/romykundal/MERN-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romykundal%2FMERN-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romykundal%2FMERN-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romykundal%2FMERN-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romykundal%2FMERN-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romykundal","download_url":"https://codeload.github.com/romykundal/MERN-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romykundal%2FMERN-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31491096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"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":["authentication","aws","nodejs","react","solid-principles"],"created_at":"2024-11-15T13:16:05.940Z","updated_at":"2026-04-06T21:31:21.633Z","avatar_url":"https://github.com/romykundal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MERN-auth and CRUD oprations \n\n## react js mongodb atlas express jwt auth token backend bootstrap\n\n```\nBuild functionality for user authentication on the front-end as well as the backend \n(You are free to use any third party library both on the front-end as well as the backend). \na. A login page should take an email and a password to log the user in. \nb. A register page should take an email and a password to register the user. \nc. REST API routes “login” and “register” enabling the same functionality. \nd. The passwords have to be stored after hashing on the database. \ne. Access JWT tokens have to be refreshed every hour\n```\n\n```\nBuild functionality to browse, add, modify and delete tasks.\na. A task contains a title and a description.\nb. A “tasks” page which provides the following functionality\n Browse the tasks\n Add a task.\n Delete the tasks\n```\n\n\n\n\n\n\n## project structure\n```terminal\nLICENSE\npackage.json\nserver/\n   package.json\n   .env (to create .env, check [prepare your secret session])\nclient/\n   package.json\n...\n```\n\n# Usage (run fullstack app on your machine)\n\n## Prerequisites\n- [MongoDB](https://gist.github.com/nrollr/9f523ae17ecdbb50311980503409aeb3)\n- [Node](https://nodejs.org/en/download/) ^10.0.0\n- [npm](https://nodejs.org/en/download/package-manager/)\n\nnotice, you need client and server runs concurrently in different terminal session, in order to make them talk to each other\n\n## Client-side usage(PORT: 3000)\n```terminal\n$ cd client   // go to client folder\n$ npm i       // npm install packages\n$ npm run dev // run it locally\n// deployment for client app\n$ npm run build // this will compile the react code using webpack and generate a folder called docs in the root level\n$ npm run start // this will run the files in docs, this behavior is exactly the same how gh-pages will run your static site\n```\n\n## Web Server APi Side usage(PORT: 1337)\n\n### Prepare your secret\n\nrun the script at the first level:\n\n(You need to add a JWT_SECRET in .env to connect to MongoDB)\n\n```terminal\n// in the root level\n$ echo \"JWT_SECRET=YOUR_JWT_SECRET\" \u003e\u003e ./server/src/.env\n```\n\n### Start\n\n```terminal\n$ cd server   // go to server folder\n$ npm i       // npm install packages\n$ npm start // run it locally\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromykundal%2Fmern-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromykundal%2Fmern-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromykundal%2Fmern-auth/lists"}