{"id":16213853,"url":"https://github.com/solygambas/javascript-blogging-platform","last_synced_at":"2026-01-27T20:14:16.177Z","repository":{"id":43962011,"uuid":"254845814","full_name":"solygambas/javascript-blogging-platform","owner":"solygambas","description":"A blogging platform using MongoDB Atlas, Express and Node.js.","archived":false,"fork":false,"pushed_at":"2023-03-04T11:34:54.000Z","size":1938,"stargazers_count":0,"open_issues_count":26,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T03:27:53.497Z","etag":null,"topics":["ejs","express","expressjs","javascript","mongodb","node","nodejs","socket-io"],"latest_commit_sha":null,"homepage":"https://javascript-blogging-platform.onrender.com/","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/solygambas.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":"2020-04-11T10:42:03.000Z","updated_at":"2022-09-08T16:32:36.000Z","dependencies_parsed_at":"2024-10-27T20:29:45.023Z","dependency_job_id":"ceb27e99-11e6-487b-92f0-b4f356333657","html_url":"https://github.com/solygambas/javascript-blogging-platform","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/solygambas%2Fjavascript-blogging-platform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solygambas%2Fjavascript-blogging-platform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solygambas%2Fjavascript-blogging-platform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solygambas%2Fjavascript-blogging-platform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solygambas","download_url":"https://codeload.github.com/solygambas/javascript-blogging-platform/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246812951,"owners_count":20838028,"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":["ejs","express","expressjs","javascript","mongodb","node","nodejs","socket-io"],"created_at":"2024-10-10T11:08:48.254Z","updated_at":"2026-01-27T20:14:16.151Z","avatar_url":"https://github.com/solygambas.png","language":"JavaScript","readme":"# Blogging Platform\n\nA blogging platform using MongoDB Atlas, Express and Node.js.\n\n## Demo\n\n[See Demo deployed on Render](https://javascript-blogging-platform.onrender.com/)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://javascript-blogging-platform.onrender.com/\"\u003e\n    \u003cimg src=\"screenshot.png\" alt=\"See Demo deployed on Render\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Core features\n\n- using Model–View–Controller (MVC) design pattern.\n- handling routes with Express.\n- handling views with Embedded JavaScript templates (EJS).\n- validating user data with validator.\n- adding registered users to MongoDB Atlas and hashing passwords with bcryptjs.\n- using promises and async/await method.\n- managing connected users with express-session.\n- storing sessions with connect-mongo.\n- displaying error/success messages with connect-flash.\n- displaying profile picture with Gravatar and generating image urls with md5.\n- performing CRUD operations (create, read, update, delete) using MongoDB Atlas for posts.\n- displaying profile with the latest posts published by author.\n- handling markdown in posts with marked.\n- sending email notifications with Sendgrid API.\n- sanitizing data posted by users with sanitize-html.\n- preventing Cross-Site Request Forgery (CSRF) with csurf.\n\n## Live Search Feature\n\n- bundling front-end JavaScript with Webpack and Babel.\n- handling key press events with setTimeout().\n- sending search requests to the server with Axios.\n- creating an index in MongoDB Atlas and building a search request to the database.\n- sanitizing results with DOMPurify.\n\n## Follow Feature\n\n- handling follow and unfollow features on author profile.\n- storing followed users in the database.\n- retrieving followers and followed users from the database.\n- counting posts, followers and followed users with await Promise.all() and countDocuments().\n- displaying a feed on the dashboard with the latest posts published by followed users.\n\n## Live Chat\n\n- handling realtime communication between web clients and server with Socket.IO.\n- sending messages with emit() and waiting for messages with on().\n- broadcasting messages with socket.broadcast.emit().\n- displaying usernames and avatars in the live chat with express-session.\n- sanitizing messages with sanitize-html (server-side) and DOMPurify (client-side).\n\n## Live Validation\n\n- displaying errors on the fly for registration form with regex.\n- checking if username and email are already in the database with Axios.\n- performing a last check before submitting the form.\n\n## API\n\n- granting access to the API with JSON Web Tokens (/api/login).\n- enabling routes for creating (/api/create-post) and deleting posts (/api/post/:id) through the API.\n- enabling public GET requests to retrieve posts by author (/api/posts-by-author/:username).\n- handling Cross-origin resource sharing (CORS).\n\n## Render\n\n- deploying on Render.\n\nBased on [Learn JavaScript: Full-Stack from Scratch](https://www.udemy.com/course/learn-javascript-full-stack-from-scratch/) by Brad Schiff (2019).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolygambas%2Fjavascript-blogging-platform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolygambas%2Fjavascript-blogging-platform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolygambas%2Fjavascript-blogging-platform/lists"}