{"id":22439347,"url":"https://github.com/dev-eranda/mern-auth-techniques","last_synced_at":"2025-03-27T09:24:43.339Z","repository":{"id":254104896,"uuid":"845438579","full_name":"dev-eranda/mern-auth-techniques","owner":"dev-eranda","description":"Built an authentication app using the MERN stack (to learn 2FA)","archived":false,"fork":false,"pushed_at":"2025-03-24T07:32:38.000Z","size":315,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T07:39:13.776Z","etag":null,"topics":["cicd","fullstack-development","jwt-authentication","mern-stack","verification-code"],"latest_commit_sha":null,"homepage":"https://mern-auth-virid.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-eranda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-08-21T08:52:34.000Z","updated_at":"2025-03-24T07:32:51.000Z","dependencies_parsed_at":"2024-08-21T13:05:07.207Z","dependency_job_id":"5de4776c-f967-4342-95ad-7bac4a283127","html_url":"https://github.com/dev-eranda/mern-auth-techniques","commit_stats":null,"previous_names":["erandamadusanka/mern-auth","erandamadusanka/mern-auth-techniques","dev-eranda/mern-auth-techniques"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-eranda%2Fmern-auth-techniques","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-eranda%2Fmern-auth-techniques/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-eranda%2Fmern-auth-techniques/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-eranda%2Fmern-auth-techniques/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-eranda","download_url":"https://codeload.github.com/dev-eranda/mern-auth-techniques/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245815633,"owners_count":20676940,"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":["cicd","fullstack-development","jwt-authentication","mern-stack","verification-code"],"created_at":"2024-12-06T01:13:47.417Z","updated_at":"2025-03-27T09:24:43.330Z","avatar_url":"https://github.com/dev-eranda.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MERN advanced authentication\n\n**Developed by:** Eranda Samarasinghe\n\u003chr /\u003e\n\n## Project Background and Overview\nThis repository focuses on full-stack development using the MERN stack. It highlights API security, scalable architecture, and database management, while also implementing advanced 2FA authentication using email OTP. Additionally, it is integrated with CI/CD and deployed on AWS EC2 helping to learn cloud infrastructure and automation\n\u003chr /\u003e\n\n## Project Goals\nThe main objectives of this application are to:\n\n1. Implemented JWT authentication to secure API endpoints and manage sessions\n2. Built a scalable architecture with modular code using Node.js and Express.js\n3. Used MongoDB for efficient and flexible data storage\n4. Integrated frontend authentication in React for a smooth user experience\n\u003chr /\u003e\n\n## Technical Details\nCore technologies used: \n\n- **MERN Stack, JWT Authentication**\n\u003chr /\u003e\n\n## Configuration\n1. Set up environment variables:\n```sh\n# MongoDB Connection URI\nMONGO_URI = mongo_uri\n\n# Application Port\nPORT = 5000\n\n# JWT Secret Key for Authentication\nJWT_SECRET = secret_key\n\n# Environment Mode (development or production)\nNODE_ENV = development\n\n# Mailtrap Configuration for Email Handling\nMAILTRAP_TOKEN = mailtrap_token\nMAILTRAP_ENDPOINT = https://send.api.mailtrap.io/\n\n# Frontend Application URL\nCLIENT_URL = http://localhost:5173\n\n```\n\u003chr /\u003e\n\n## Installation\n1. Clone repository:\n   ```sh\n   git clone https://github.com/dev-eranda/mern-auth-techniques.git\n   \n2. Install dependencies:\n   ```sh\n   npm install\n\n3. Build the Frontend Application:\n   ```sh\n   npm run build\n\n4. Start the Server Application:\n   ```sh\n   npm start\n   \n  - **Open [http://localhost:5000](http://localhost:5000) with your browser to see the result.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-eranda%2Fmern-auth-techniques","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-eranda%2Fmern-auth-techniques","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-eranda%2Fmern-auth-techniques/lists"}