{"id":26088932,"url":"https://github.com/rafamguedes/codersblog","last_synced_at":"2026-04-08T20:02:50.142Z","repository":{"id":281380088,"uuid":"785703596","full_name":"rafamguedes/CodersBlog","owner":"rafamguedes","description":"This project involves developing a Node.js API using the Sequelize package to perform CRUD operations on blog posts. The application also includes implementing user authentication and associating users, posts, and categories.","archived":false,"fork":false,"pushed_at":"2024-04-15T16:56:38.000Z","size":3732,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T17:58:15.960Z","etag":null,"topics":["chai","jwt-authentication","mocha","nodejs","postgresql","reactjs","sequelize-orm","sinon","testing-library","typescript","vitest"],"latest_commit_sha":null,"homepage":"https://codersblogg.vercel.app/","language":"TypeScript","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/rafamguedes.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-04-12T12:52:18.000Z","updated_at":"2024-06-12T15:53:20.000Z","dependencies_parsed_at":"2025-03-08T17:58:27.933Z","dependency_job_id":"0bcfbf30-8d32-49ea-9e71-243ae6d14e05","html_url":"https://github.com/rafamguedes/CodersBlog","commit_stats":null,"previous_names":["rafamguedes/codersblog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rafamguedes/CodersBlog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafamguedes%2FCodersBlog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafamguedes%2FCodersBlog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafamguedes%2FCodersBlog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafamguedes%2FCodersBlog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafamguedes","download_url":"https://codeload.github.com/rafamguedes/CodersBlog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafamguedes%2FCodersBlog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571601,"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":["chai","jwt-authentication","mocha","nodejs","postgresql","reactjs","sequelize-orm","sinon","testing-library","typescript","vitest"],"created_at":"2025-03-09T08:44:08.539Z","updated_at":"2026-04-08T20:02:50.117Z","avatar_url":"https://github.com/rafamguedes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eCoders Blog 👩‍💻\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Node.js-43853D?style=for-the-badge\u0026logo=node.js\u0026logoColor=white\" alt=\"Node\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Express.js-404D59?style=for-the-badge\" alt=\"Express\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge\u0026logo=typescript\u0026logoColor=white\" alt=\"TypeScript\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/PostgreSQL-316192?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white\" alt=\"Postgre\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/sequelize-323330?style=for-the-badge\u0026logo=sequelize\u0026logoColor=blue\" alt=\"Sequelize\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/json%20web%20tokens-323330?style=for-the-badge\u0026logo=json-web-tokens\u0026logoColor=pink\" alt=\"JWT\"\u003e\n  \u003cimg alt=\"Docker\" src=\"https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge\u0026logo=docker\u0026logoColor=white\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/mocha.js-323330?style=for-the-badge\u0026logo=mocha\u0026logoColor=Brown\" alt=\"Mocha\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/chai.js-323330?style=for-the-badge\u0026logo=chai\u0026logoColor=red\" alt=\"Chai\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/sinon.js-323330?style=for-the-badge\u0026logo=sinon\" alt=\"Sinon\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/eslint-3A33D1?style=for-the-badge\u0026logo=eslint\u0026logoColor=white\" alt=\"ESLint\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/React-20232A?style=for-the-badge\u0026logo=react\u0026logoColor=61DAF\" alt=\"React\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/testing%20library-323330?style=for-the-badge\u0026logo=testing-library\u0026logoColor=red\" alt=\"Testing Library\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/React_Router-CA4245?style=for-the-badge\u0026logo=react-router\u0026logoColor=white\" alt=\"React Router\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/styled--components-DB7093?style=for-the-badge\u0026logo=styled-components\u0026logoColor=white\" alt=\"Styled Components\"\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"1000\" src=\"screenshots/home.png\"\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n## ➡️ Project Description\n\nThis project involves developing a Node.js API using the Sequelize package to perform CRUD operations on blog posts. The application also includes implementing user authentication and associating users, posts, and categories.\n\nDeploy: [Coders Blog!](https://codersblogg.vercel.app/)\n\n\u003cbr /\u003e\n\n## ➡️ Technologies\n\n### ▶️ Back-end:\n\n```\nNodeJS, TypeScript, JWT, Sequelize, PostgreSQL, Mocha, Sinon, Chai and Docker \n```\n\n### ▶️ Front-end:\n\n```\nReactJS, TypeScript, Vite, Vitest, Testing Library and Axios\n```\n\n\u003cbr /\u003e\n\n## ➡️ Features\n\n### ▶️ RESTful Endpoints:\n\nImplementation of endpoints to perform CRUD operations on posts.\n\n### ▶️ User Authentication:\n\nCreation of posts requires user authentication.\n\n### ▶️ User-Post Relationship:\n\nEstablishment of a relationship between users and posts, ensuring each post is associated with a specific user.\n\n### ▶️ Post-Category Relationship:\n\nUse of categories to classify posts, establishing a relationship between posts and categories. Each post can belong to one or more categories.\n\n\u003cbr /\u003e\n\n## ➡️ Project Setup\n\n### ▶️ Dependency Installation:\n```\n1. npm run install:apps - to install necessary dependencies.\n2. npm run compose:up - to start the backend container and database.\n3. npm run dev - to start the frontend\n```\n\n### ▶️ Database Configuration:\n```\n- Configure the database connection information in the config/database.js file.\n```\n\u003cbr /\u003e\n\n## ➡️ Endpoints\n\n### ▶️ User\n```\n- POST /user - Create a new user\n- GET /user - Get all users. (requires authentication)\n- GET /user/:id - Get user by ID. (requires authentication)\n- PUT /user/:id - Update user. (requires authentication)\n- DELETE /user:id - Delete user. (requires authentication)\n```\n\n### ▶️ Post\n```\n- GET /post: Retrieves the list of all posts.\n- GET /post/search: Search for a post using a string\n- POST /post: Creates a new post. (requires authentication)\n- GET /post/:id: Retrieves details of a specific post. (requires authentication)\n- PUT /post/:id: Updates an existing post. (requires authentication)\n- DELETE /post/:id: Deletes an existing post. (requires authentication)\n```\n\n### ▶️ Categories\n```\n- POST /categories - Create a new category. (requires authentication)\n- GET /categories - Get all categories. (requires authentication)\n- PUT /categories/:id - Update category. (requires authentication)\n- DELETE /categories/:id - Delete category. (requires authentication) \n```\n### ▶️ Authentication\n```\n- POST /login: Performs user login.\n- GET /login/role: Get the user role. (requires authentication)\n```\n\u003cbr /\u003e\n\n## ➡️ ScreenShots\n\n### ▶️ Home Page\n\n\u003cimg width=\"800\" src=\"screenshots/home.png\"\u003e\n\n\u003cbr /\u003e\n\n### ▶️ Single Post Page\n\n\u003cimg width=\"800\" src=\"screenshots/singlePost.png\"\u003e\n\n\u003cbr /\u003e\n\n### ▶️ Login Page\n\n\u003cimg width=\"800\" src=\"screenshots/login.png\"\u003e\n\n\u003cbr /\u003e\n\n### ▶️ Dashboard Page\n\n\u003cimg width=\"800\" src=\"screenshots/dashboard.png\"\u003e\n\n\u003cbr /\u003e\n\n### ▶️ Create Post Page\n\n\u003cimg width=\"800\" src=\"screenshots/createPost.png\"\u003e\n\n\n\u003cbr /\u003e\n\n### ▶️ Edit Post Page\n\n\u003cimg width=\"800\" src=\"screenshots/editPost.png\"\u003e\n\n\u003cbr /\u003e\n\n### ▶️ Tags Page\n\n\u003cimg width=\"800\" src=\"screenshots/tags.png\"\u003e\n\n\u003cbr /\u003e\n\n### ▶️ Profile Page\n\n\u003cimg width=\"800\" src=\"screenshots/profile.png\"\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafamguedes%2Fcodersblog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafamguedes%2Fcodersblog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafamguedes%2Fcodersblog/lists"}