{"id":18968520,"url":"https://github.com/coder12git/simple-blog-website-mongodb-version","last_synced_at":"2026-04-05T10:30:19.092Z","repository":{"id":140418264,"uuid":"525058802","full_name":"coder12git/Simple-Blog-website-MongoDB-version","owner":"coder12git","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-15T19:20:52.000Z","size":551,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T07:07:30.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/coder12git.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}},"created_at":"2022-08-15T16:27:17.000Z","updated_at":"2022-08-15T16:41:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"857a21f6-ff47-4cf8-a7ac-ad0d05584b72","html_url":"https://github.com/coder12git/Simple-Blog-website-MongoDB-version","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder12git%2FSimple-Blog-website-MongoDB-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder12git%2FSimple-Blog-website-MongoDB-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder12git%2FSimple-Blog-website-MongoDB-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder12git%2FSimple-Blog-website-MongoDB-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coder12git","download_url":"https://codeload.github.com/coder12git/Simple-Blog-website-MongoDB-version/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239965674,"owners_count":19726159,"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":[],"created_at":"2024-11-08T14:47:42.181Z","updated_at":"2026-04-05T10:30:19.041Z","avatar_url":"https://github.com/coder12git.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple-Blog-MongoDB version\n\nThis is an exercise in [Node.js](https://nodejs.org/en/), [Express.js](https://expressjs.com/), [MongoDB](https://www.mongodb.com/), and [Mongoose](https://mongoosejs.com/). It's a simple blogging web application where one can **add new blog posts**, **view them** in their own dedicated route, and **delete or edit them**. The posts are stored in a local MongoDB database. [EJS templating](https://ejs.co/) is used for the HTML pages, [Bootstrap v5.2](https://getbootstrap.com/docs/5.2/getting-started/introduction/) is also used, along with some custom CSS styling.  \nIt's basically a backend database.  \n\n![simple blog image 1](/public/images/blog-1.png)  \n\n![simple blog image 2](/public/images/blog-2.png)  \n\n![simple blog image 3](/public/images/blog-3.png)  \n\n![simple blog image 4](/public/images/blog-4.png)  \n\n\n---  \n\n## To run the app:  \n\n### Prerequisites  \n\nIn order to run this application locally you'll need to have [Node.js](https://nodejs.org/en/) installed in your system, as well as [MongoDB](https://www.mongodb.com/).  \n\n### Running the app locally  \n\nOnce you **clone or download** the repository files to your desired location, open a command-line terminal, navigate into the app top-level directory, and **install the required package dependencies**.   \n\n```bash\n$ cd Simple-Blog-website  # or your chosen other directory name\n$ npm install             # install package dependencies\n```\n\nThen open two command-line terminals, one to **run the `mongod` process** and the other to **run `mongod`** (so that you can verify the post additions - see below):  \n\n```bash\n# CLI tab 1\n$ mongod\n\n# CLI tab 2\n$ mongo\n```\n\nFinally, start the app by running the '[app.js](./app.js)' file:  \n\n```bash\n$ node app.js   # or 'nodemon app.js', etc\n```\n\nand type \"[http://localhost:3000](http://localhost:3000)\" in your browser's address to see the application running.  \n\n### Verifying changes via 'mongo'  \n\nOnce you've added some posts to the blog (and thus the database), they can be verified by going to the `mongo` CLI tab:  \n\n```bash\n\u003e show dbs  # there should be a 'postsDB' present\n\u003e use postsDB\n\u003e show collections  # there should be a 'posts' collection\n\u003e db.posts.find()   # show all post documents in the 'posts' collection\n\n\u003e cls  # clears the screen\n\u003e exit # exits the mongo session\n```\n\nDon't forget to ***also terminate the 'mongod' process*** via \u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eC\u003c/kbd\u003e before closing that tab! \n\n\u003cbr\u003e  \n\n---  \n\n Click on this [link](https://fathomless-stream-66385.herokuapp.com/) too see my website!\n\n---\n\nRandom funny short:  \n- \"Debugging: being the detective in a crime movie where you're also the murderer\".\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder12git%2Fsimple-blog-website-mongodb-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoder12git%2Fsimple-blog-website-mongodb-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder12git%2Fsimple-blog-website-mongodb-version/lists"}