{"id":19855021,"url":"https://github.com/goldenhub/fullstackopen-part4","last_synced_at":"2026-04-09T17:02:56.214Z","repository":{"id":112854612,"uuid":"557560790","full_name":"Goldenhub/fullstackopen-part4","owner":"Goldenhub","description":"Implementing a standard node directory structure in a simple POST and GET blog app","archived":false,"fork":false,"pushed_at":"2024-01-24T02:08:38.000Z","size":209,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T23:40:29.114Z","etag":null,"topics":["cors","dotenv","eslint","expressjs","middlewares","mongodb","mongodb-atlas","mongoose-schema","mongoose-validation","mongoosejs","nodejs","nodemon"],"latest_commit_sha":null,"homepage":"","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/Goldenhub.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":"2022-10-25T22:49:34.000Z","updated_at":"2022-10-26T02:12:37.000Z","dependencies_parsed_at":"2024-01-24T03:27:02.646Z","dependency_job_id":"dd5e9f59-1ea1-4afc-a069-d05eeb6d765f","html_url":"https://github.com/Goldenhub/fullstackopen-part4","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Goldenhub/fullstackopen-part4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Goldenhub%2Ffullstackopen-part4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Goldenhub%2Ffullstackopen-part4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Goldenhub%2Ffullstackopen-part4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Goldenhub%2Ffullstackopen-part4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Goldenhub","download_url":"https://codeload.github.com/Goldenhub/fullstackopen-part4/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Goldenhub%2Ffullstackopen-part4/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278386118,"owners_count":25978109,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"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":["cors","dotenv","eslint","expressjs","middlewares","mongodb","mongodb-atlas","mongoose-schema","mongoose-validation","mongoosejs","nodejs","nodemon"],"created_at":"2024-11-12T14:11:25.504Z","updated_at":"2025-10-04T22:43:40.108Z","avatar_url":"https://github.com/Goldenhub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Bloglist Node App\n\n## implementing standard node directory struture\n\n### Dependencies\n\n- express\n- mongoose\n- dotenv\n- cors\n\n### Dev Dependencies\n\n- eslint\n- nodemon\n\n## Directory structure\n\n```javascript\n├── index.js\n├── app.js\n├── controllers\n│   ├──blogs.js\n├── package-lock.json\n├── package.json\n├── utils\n    ├── config.js\n    ├── logger.js\n    └── middleware.js\n├── models\n    ├── blog.js\n```\n\n## How to run\n\n- Clone the repo\n- Run `npm install`\n- Run `npm run dev` to start the server with nodemon\n- Run `npm start` to start the server without nodemon\n- Use Postman or any Rest Client to test the endpoints\n\n- ```javascript\n  // GET all blogs\n  GET http://localhost:3003/api/blogs\n  \n  // POST a blog\n  POST http://localhost:3003/api/blogs\n    {\n        \"title\": \"Blog Title\",\n        \"author\": \"Blog Author\",\n        \"url\": \"Blog URL\",\n        \"likes\": 0\n    }\n  ```\n\n### Note\n\n- The server will run in PORT 3003 by default. You can set the PORT in your .env file.\n- MongoDB database was used for this project. You can set the MONGODB_URI in your .env file.\n\n## How to lint\n\n- Run `npm run lint`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldenhub%2Ffullstackopen-part4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoldenhub%2Ffullstackopen-part4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldenhub%2Ffullstackopen-part4/lists"}