{"id":28919685,"url":"https://github.com/uthrapathy-m/osm-auth-app","last_synced_at":"2026-05-04T09:32:44.733Z","repository":{"id":296156291,"uuid":"992446803","full_name":"uthrapathy-m/osm-auth-app","owner":"uthrapathy-m","description":"Full-stack login and landing page app using Node.js, MongoDB, Tailwind CSS, and Docker Compose.","archived":false,"fork":false,"pushed_at":"2025-05-29T07:30:47.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-20T01:57:16.610Z","etag":null,"topics":["docker","docker-compose","docker-image","docker-images","dockerfile"],"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/uthrapathy-m.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-29T07:03:42.000Z","updated_at":"2025-05-29T08:20:55.000Z","dependencies_parsed_at":"2025-05-29T08:44:49.558Z","dependency_job_id":"ea67d0fa-9f0c-4321-bebe-c894d7387fb0","html_url":"https://github.com/uthrapathy-m/osm-auth-app","commit_stats":null,"previous_names":["uthrapathy-m/osm-auth-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uthrapathy-m/osm-auth-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uthrapathy-m%2Fosm-auth-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uthrapathy-m%2Fosm-auth-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uthrapathy-m%2Fosm-auth-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uthrapathy-m%2Fosm-auth-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uthrapathy-m","download_url":"https://codeload.github.com/uthrapathy-m/osm-auth-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uthrapathy-m%2Fosm-auth-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32601529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker","docker-compose","docker-image","docker-images","dockerfile"],"created_at":"2025-06-22T04:00:36.347Z","updated_at":"2026-05-04T09:32:44.710Z","avatar_url":"https://github.com/uthrapathy-m.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Here’s your complete and polished `README.md` for the GitHub repo of your full-stack login + landing page Docker Compose app:\n\n---\n\n### ✅ `README.md`\n\n```markdown\n# 🧠 OSM Auth App\n\nA full-stack login + landing page app using:\n\n- ⚙️ Node.js + Express backend (JWT-based authentication)\n- 🎨 Static HTML + Tailwind CSS frontend\n- 🍃 MongoDB for user storage\n- 🐳 Docker Compose to run everything easily — no local installs required\n\n---\n\n## 📦 Features\n\n- ✅ User registration and login\n- ✅ Password hashing with bcrypt\n- ✅ JWT token generation and localStorage-based login\n- ✅ Elegant UI styled using TailwindCSS\n- ✅ Landing page appears after login\n- ✅ Entire app runs with a single Docker Compose command\n\n---\n```\n## 📁 Folder Structure\n\n```\n\nosm-auth-app/\n├── backend/           # Node.js Express API (port 5000)\n├── frontend/          # Static HTML UI served via npx serve (port 3000)\n├── docker-compose.yml # Docker Compose setup\n├── .gitignore         # Docker Compose setup\n\n\n````\n\n---\n\n## 🛠️ Tech Stack\n\n| Layer      | Technology         |\n|------------|--------------------|\n| Frontend   | HTML, TailwindCSS  |\n| Backend    | Node.js, Express   |\n| Database   | MongoDB            |\n| Auth       | JWT, bcrypt        |\n| DevOps     | Docker Compose     |\n\n---\n\n## 🚀 Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/uthrapathy-m/osm-auth-app.git\ncd osm-auth-app\n````\n\n---\n\n### 2. Build \u0026 Run the App\n\n#### ✅ Recommended: Full Rebuild\n\n```bash\ndocker-compose up --build -d\n```\n---\n\n* Reuses volumes and image cache\n* Faster for incremental testing\n\n#### ⚙️ Optional: Clean Build and Start\n\n```bash\ndocker-compose down -v \u0026\u0026 docker-compose build --no-cache \u0026\u0026 docker-compose up -d\n```\n\n* Removes all containers, volumes, and cache\n* Rebuilds everything fresh\n* Starts services in background (detached mode)\n\n---\n\n### 3. Access the Application\n\n| Service  | URL                                                      |\n| -------- | -------------------------------------------------------- |\n| Frontend | [http://localhost:3000](http://localhost:3000)           |\n| Backend  | [http://localhost:5000/auth](http://localhost:5000/auth) |\n| Database | localhost:27017 (internal via `mongo`)                   |\n\n---\n\n## 🔐 Auth Flow\n\n1. Users submit a username and password via the login page\n2. If it’s a first-time user → auto-register and hash the password\n3. If user exists → verify password using bcrypt\n4. Issue a JWT token on success\n5. Save token in `localStorage` and redirect to `landing.html`\n\n---\n\n## 🧪 Dev Commands\n\n```bash\n# View backend logs\ndocker-compose logs -f backend\n\n# View all service logs\ndocker-compose logs -f\n\n# Stop all services\ndocker-compose down\n\n# Stop and wipe everything\ndocker-compose down -v\n```\n\n---\n\n## ❓ Troubleshooting\n\n### Invalid ELF Header on bcrypt?\n\nIf you see:\n\n```\nError: invalid ELF header in bcrypt_lib.node\n```\n\nYou copied `node_modules` from your host into the container. Fix it:\n\n* Add this to `backend/.dockerignore`:\n\n  ```\n  node_modules\n  ```\n\nThen rebuild with:\n\n```bash\ndocker-compose down -v \u0026\u0026 docker-compose build --no-cache \u0026\u0026 docker-compose up -d\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futhrapathy-m%2Fosm-auth-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futhrapathy-m%2Fosm-auth-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futhrapathy-m%2Fosm-auth-app/lists"}