{"id":21403986,"url":"https://github.com/itzdiv/blog_backend","last_synced_at":"2026-04-08T16:31:55.342Z","repository":{"id":263680211,"uuid":"890030224","full_name":"itzdiv/blog_backend","owner":"itzdiv","description":"A modern, minimalistic blog website built with HTML, CSS, JavaScript, Node.js, and EJS. It features sleek black aesthetics, dynamic blog posting with editable and deletable entries, and a randomized quote in the posting window. Clone, run, and easily interact with the site to post, edit, and delete blogs.","archived":false,"fork":false,"pushed_at":"2025-04-10T10:47:59.000Z","size":2313,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T11:46:00.076Z","etag":null,"topics":["aesthetics","backend","blog","css","ejs-express","express-js","frontend","fullstack-development","html","minimalist-design","nodejs","npm"],"latest_commit_sha":null,"homepage":"","language":"EJS","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/itzdiv.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":"2024-11-17T20:45:28.000Z","updated_at":"2025-04-10T10:48:02.000Z","dependencies_parsed_at":"2024-11-19T21:42:04.066Z","dependency_job_id":null,"html_url":"https://github.com/itzdiv/blog_backend","commit_stats":null,"previous_names":["itzdiv/blog_backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itzdiv/blog_backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzdiv%2Fblog_backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzdiv%2Fblog_backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzdiv%2Fblog_backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzdiv%2Fblog_backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itzdiv","download_url":"https://codeload.github.com/itzdiv/blog_backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzdiv%2Fblog_backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31564883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"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":["aesthetics","backend","blog","css","ejs-express","express-js","frontend","fullstack-development","html","minimalist-design","nodejs","npm"],"created_at":"2024-11-22T16:11:27.033Z","updated_at":"2026-04-08T16:31:55.336Z","avatar_url":"https://github.com/itzdiv.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📝 Blog Ninja — A Minimalist, Secure Blogging Platform\n\n**Blog Ninja** is a sleek, full-stack blogging platform built using the **PERN** stack (PostgreSQL, Express, React, Node.js)—but currently leverages EJS for simple server-side rendering. It allows user authentication (local \u0026 Google OAuth), blog creation and management, and displays random motivational quotes to boost creativity while writing.\n\n---\n\n## 🚀 Features\n\n- 🔐 **User Authentication** — Secure login/signup using Local Strategy and Google OAuth via Passport.js  \n- 📝 **Blog CRUD** — Create, view, edit, and delete blog posts  \n- 💬 **Quotes** — Random quotes injected from `quotesy` to inspire writing  \n- 💾 **Sessions** — Secure session management using PostgreSQL store  \n- 🖤 **Clean UI** — Minimal, modern black-and-white EJS-based layout  \n- 📑 **API Docs** — Built-in `/documentation` route for exploring API endpoints  \n\n---\n\n## 📦 Tech Stack\n\n- **Backend**: Node.js, Express.js  \n- **Database**: PostgreSQL  \n- **Frontend**: EJS templates  \n- **Authentication**: Passport.js (Local + Google OAuth 2.0)  \n- **Security**: bcrypt, express-session  \n- **Extras**: quotesy, dotenv, connect-pg-simple  \n\n---\n\n## 📂 Project Structure\n```blog\nblog-ninja/\n├── public/           # Static files (CSS, images)\n├── views/            # EJS templates (home, compose, login, etc.)\n├── auth.js           # Authentication logic\n├── index.js          # Blog CRUD routes\n├── server.js         # Entry point for the backend API\n├── .env              # Environment variables\n├── package.json\n└── README.md\n```\n\n\n\n---\n\n## 🛠️ Getting Started\n\nFollow these steps to run the project locally:\n\n### 1. Clone the Repository\n```\ngit clone https://github.com/your-username/blog-ninja.git\ncd blog-ninja\n```\n\n### 2. Install Dependencies\n```\nnpm install\n```\n\n\n### 3. Set Up Environment Variables\n\nCreate a `.env` file in the root directory and add the following:\n```\nPostgreSQL Config\nPG_USER=your_postgres_username\nPG_HOST=localhost\nPG_DATABASE=your_database_name\nPG_PASSWORD=your_postgres_password\nPG_PORT=5432\n\nSession Secret\nSESSION_SECRET=your_secret_key_here\n```\nGoogle OAuth Credentials\n```\nGOOGLE_CLIENT_ID=your_google_client_id\nGOOGLE_CLIENT_SECRET=your_google_client_secret\n```\n\n⚠️ Make sure PostgreSQL is installed and running on your system, and that your database exists.\n\n### 4. Start the Server\n```\nnode index.js\nnode server.js(for backend api)\n```\nBy default, the app will run at: `http://localhost:3001`\n\n---\n\n## ✅ TODOs\n\n- [ ] Add support for Markdown in blog posts  \n- [ ] Add user profile pages  \n- [ ] Add post search \u0026 category filters  \n- [ ] Integrate React frontend (SPA) in v2  \n- [ ] Add Swagger or ReDoc-based API docs  \n\n---\n\n## 📸 Screenshots\n\n\u003cimg src=\"https://raw.githubusercontent.com/itzdiv/blog_backend/main/public/render/img1.png\" alt=\"Project Preview\" style=\"width:100%; max-width:600px;\"\u003e\n\n---\n\n## 📜 License\n\nMIT License — Feel free to fork, modify, and use this project however you like.\n\n---\n\n## 💬 Want to Contribute?\n\nPull requests are welcome! For major changes, please open an issue first to discuss what you'd like to change.\n\n---\n\n✨ Made with coffee, code, and creativity.\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzdiv%2Fblog_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzdiv%2Fblog_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzdiv%2Fblog_backend/lists"}