{"id":29023366,"url":"https://github.com/rish-16/nodejs-mongodb-blog","last_synced_at":"2026-02-01T22:31:51.459Z","repository":{"id":61151744,"uuid":"187643627","full_name":"rish-16/NodeJS-MongoDB-Blog","owner":"rish-16","description":"A complete API for blog posts using a MongoDB AWS backend 📑","archived":false,"fork":false,"pushed_at":"2019-05-22T08:48:46.000Z","size":8039,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-26T03:06:11.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/rish-16.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}},"created_at":"2019-05-20T13:15:03.000Z","updated_at":"2021-06-10T13:33:59.000Z","dependencies_parsed_at":"2022-10-11T20:58:03.816Z","dependency_job_id":null,"html_url":"https://github.com/rish-16/NodeJS-MongoDB-Blog","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rish-16/NodeJS-MongoDB-Blog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2FNodeJS-MongoDB-Blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2FNodeJS-MongoDB-Blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2FNodeJS-MongoDB-Blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2FNodeJS-MongoDB-Blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rish-16","download_url":"https://codeload.github.com/rish-16/NodeJS-MongoDB-Blog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rish-16%2FNodeJS-MongoDB-Blog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28993253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T22:01:47.507Z","status":"ssl_error","status_checked_at":"2026-02-01T21:58:37.335Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2025-06-26T03:06:10.786Z","updated_at":"2026-02-01T22:31:51.443Z","avatar_url":"https://github.com/rish-16.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeJS-MongoDB-Blog-Template\n\nA complete API for blog posts using a MongoDB AWS backend\n\n---\n\n### Downloading the template\n\n```bash\ngit clone https://github.com/rish-16/NodeJS-MongoDB-Blog\ncd NodeJS-MongoDB-Blog\n```\n\n### Connecting to MongoDB\n\nVisit the [MongoDB](https://cloud.mongodb.com/) website and sign up for an account. It should take you to your dashboard where it will prompt you to set up your cluster. Select **AWS** for the provider and follow the steps.\n\nWhen you are the **Connect** step, you should see something like this:\n\u003cbr\u003e\n![Connect](./Assets/connect.png)\nClick the **Connect Your Application** button and it should take you to a popup with your **Connection String**. Copy this string.\n\nGo back to the your text editor and create a file called `.env`. Create a variable for your connection string like so:\n\n```\nMONGO_CONNECT = \"\u003cINSERT_CONNECTION_STRING\u003e\"\n```\n\n_**Note:** Ensure your connection string has your username and password that match the credentials of the user you created on the MongoDB admin dashboard. If it doesn't match, you cannot access the cluster._\n\n---\n\n### Running the web app\n\nTo run the web app, you need to start a `localhost` server running on port 5000 (as found in `app.js`). To start the server, enter the following into your command line:\n\n```bash\nnpm start\n```\n\nAs written in the `package.json` file, it should run the command, `nodemon app.js` behind the scenes.\n\n---\n\n### Accessing the web app\n\nTo access the app, open up your browser and enter the following link:\n\n```\nhttp://localhost:5000/home\n```\n\nSince there are no posts created, it should open up a blank document that looks like this:\n\n![Home](./Assets/webapp.png)\n\nTo create a post, click the new button at the top left hand corner of the screen. It will redirect you to the post creation page:\n\n![New Story](./Assets/new.png)\n\nType in a title and description and click **Publish**. It should redirect you to the home page and you should see your post there:\n\n![Post](./Assets/post.png)\n\n**Delete** deletes the post from the MongoDB cluster collection.\nOn clicking the title, it redirects you to the post page below:\n\n![Post](./Assets/article.png)\n\n---\n\n### Contributions\n\nIf interested in adding on to the project, feel free to open a pull request! Things on the roadmap:\n\n1. Ability to add and delete comments on a post\n2. Responsive UI redesign\n3. Adding authentication and users\n\n---\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frish-16%2Fnodejs-mongodb-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frish-16%2Fnodejs-mongodb-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frish-16%2Fnodejs-mongodb-blog/lists"}