{"id":29190765,"url":"https://github.com/adityarajsingh2904/realworld-nodeapi","last_synced_at":"2026-06-23T03:31:49.794Z","repository":{"id":301330535,"uuid":"1008907483","full_name":"Adityarajsingh2904/RealWorld-NodeAPI","owner":"Adityarajsingh2904","description":"A fully functional Medium.com clone backend built using Node.js, Express, and MongoDB","archived":false,"fork":false,"pushed_at":"2025-06-26T09:47:50.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-26T10:28:33.626Z","etag":null,"topics":["backend","express-","javascript","mongodb","nodejs-","realworld","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/Adityarajsingh2904.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-06-26T09:22:24.000Z","updated_at":"2025-06-26T09:47:55.000Z","dependencies_parsed_at":"2025-06-26T10:40:20.084Z","dependency_job_id":null,"html_url":"https://github.com/Adityarajsingh2904/RealWorld-NodeAPI","commit_stats":null,"previous_names":["adityarajsingh2904/realworld-nodeapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Adityarajsingh2904/RealWorld-NodeAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adityarajsingh2904%2FRealWorld-NodeAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adityarajsingh2904%2FRealWorld-NodeAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adityarajsingh2904%2FRealWorld-NodeAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adityarajsingh2904%2FRealWorld-NodeAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Adityarajsingh2904","download_url":"https://codeload.github.com/Adityarajsingh2904/RealWorld-NodeAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adityarajsingh2904%2FRealWorld-NodeAPI/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263052430,"owners_count":23406106,"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":["backend","express-","javascript","mongodb","nodejs-","realworld","rest-api"],"created_at":"2025-07-02T00:11:11.587Z","updated_at":"2026-06-23T03:31:49.751Z","avatar_url":"https://github.com/Adityarajsingh2904.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🌐 RealWorld-NodeAPI – A Medium Clone Backend using Node.js + Express\n\n**RealWorld-NodeAPI** is a backend implementation of the RealWorld spec using **Node.js**, **Express**, and **MongoDB**.  \nIt supports fully functional APIs for articles, users, comments, profiles, and authentication — just like Medium.\n\nThis fork is restructured, refined, and maintained by Aditya Raj Singh.\n\n---\n\n## 🚀 Features\n\n- 🔐 JWT-based Authentication\n- 👤 User Profile \u0026 Follow System\n- 📝 CRUD for Articles (with slugs, tags)\n- 💬 Comments \u0026 Favoriting\n- 🧪 Postman-based Test Suite\n- 🐳 Docker Support for MongoDB\n- 📚 `GET /api/articles/recommended` endpoint for personalized article suggestions\n\n### Example request\n\nFetch a list of up to 5 recommended articles for the authenticated user:\n\n```bash\ncurl -H \"Authorization: Token \u003cjwt\u003e\" \\\n  http://localhost:3000/api/articles/recommended?limit=5\n```\n\n### Example response\n\n```json\n{\n  \"articles\": [\n    {\n      \"slug\": \"how-to-train-your-dragon\",\n      \"title\": \"How to train your dragon\",\n      \"description\": \"Ever wonder how?\",\n      \"body\": \"You have to believe\",\n      \"tagList\": [\"dragons\", \"training\"],\n      \"createdAt\": \"2023-01-01T00:00:00.000Z\",\n      \"updatedAt\": \"2023-01-01T00:00:00.000Z\",\n      \"favorited\": false,\n      \"favoritesCount\": 0,\n      \"author\": {\n        \"username\": \"jake\",\n        \"bio\": \"\",\n        \"image\": null,\n        \"following\": false\n      }\n    }\n  ],\n  \"articlesCount\": 1\n}\n```\n---\n\n## 🗂 Project Structure\n\n```\nRealWorld-NodeAPI/\n├── server.js            # Application entry point\n├── config/              # JWT / DB config\n│   ├── app.js           # Express configuration\n│   └── ...\n├── routes/              # Express route controllers\n├── models/              # Mongoose schemas\n├── tests/               # Postman tests\n├── package.json\n```\n\n---\n\n## ⚙️ Setup \u0026 Run\n\n### Requirements\n\n- Node.js ≥ 18\n- MongoDB (local or Docker)\n- Postman (optional for testing)\n\n### Installation\n\n```bash\ngit clone https://github.com/Adityarajsingh2904/RealWorld-NodeAPI.git\ncd RealWorld-NodeAPI\ncp .env.example .env # create your environment file\nnpm install\nnpm run dev\n```\n\n### MongoDB with Docker\n\n```bash\nnpm run mongo:start\n```\n\n---\n\n## 📮 API Testing\n\n```bash\nnpm install -g newman\nnpm test\n```\n\n---\n\n## 👤 Maintainer\n\n**Aditya Raj Singh**  \n📧 thisis.adityarajsingh@gmail.com  \n🔗 [GitHub](https://github.com/Adityarajsingh2904)\n\n---\n\n## 📜 License\n\nLicensed under the **ISC License**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityarajsingh2904%2Frealworld-nodeapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadityarajsingh2904%2Frealworld-nodeapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadityarajsingh2904%2Frealworld-nodeapi/lists"}