{"id":23384338,"url":"https://github.com/erickgbr/devtree","last_synced_at":"2026-05-06T13:02:44.797Z","repository":{"id":266684722,"uuid":"899023975","full_name":"ErickGBR/devtree","owner":"ErickGBR","description":"Devtree clone with Typescript and express","archived":false,"fork":false,"pushed_at":"2025-09-25T15:41:45.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-25T17:38:40.989Z","etag":null,"topics":["mongodb","mongoose","mongoosejs","node","node-js","nodejs","typescript"],"latest_commit_sha":null,"homepage":"","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/ErickGBR.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-05T13:34:49.000Z","updated_at":"2025-09-25T15:41:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"44928e88-7dff-4ca7-9045-1d1fd6d72f70","html_url":"https://github.com/ErickGBR/devtree","commit_stats":null,"previous_names":["erickgbr/devtree"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ErickGBR/devtree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2Fdevtree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2Fdevtree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2Fdevtree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2Fdevtree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ErickGBR","download_url":"https://codeload.github.com/ErickGBR/devtree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickGBR%2Fdevtree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32694980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["mongodb","mongoose","mongoosejs","node","node-js","nodejs","typescript"],"created_at":"2024-12-21T23:18:28.834Z","updated_at":"2026-05-06T13:02:44.792Z","avatar_url":"https://github.com/ErickGBR.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n---\n\n# Devtree Clone Backend\n\nThis project is a backend implementation of a Devtree clone, created using TypeScript and React. It uses Express for the backend framework, Express Validator for data validation, and Mongoose for MongoDB interaction.\n\n## Installation\n\nYou can install the necessary dependencies using one of the following package managers:\n\n- **Yarn**  \n  `yarn install`\n\n- **npm**  \n  `npm install`\n\n## Running the Project\n\nTo run the project after compilation, use one of the following commands:\n\n- **Yarn**  \n  `yarn dev`\n\n- **npm**  \n  `npm run dev`\n\nMake sure to have MongoDB running locally or use a cloud-based instance to store your data.\n\n## Available Endpoints\n\n### Register User\n\n- **URL**: `http://127.0.0.1:4000/auth/register`\n- **Method**: `POST`\n\n#### Request Body:\n```json\n{\n    \"handle\": \"\u003cstring\u003e\",     // Unique user handle (string)\n    \"name\": \"\u003cstring\u003e\",       // User's full name (string)\n    \"email\": \"\u003cstring\u003e\",      // User's email address (string)\n    \"password\": \"\u003cstring\u003e\"    // User's password (string)\n}\n```\n\n#### Response:\nThe server will respond with a status indicating whether the registration was successful or if any validation errors occurred.\n\n---\n\n### Login User\n\n- **URL**: `http://127.0.0.1:4000/auth/login`\n- **Method**: `POST`\n\n#### Request Body:\n```json\n{\n    \"email\": \"\u003cstring\u003e\",      // User's email address (string)\n    \"password\": \"\u003cstring\u003e\"    // User's password (string)\n}\n```\n\n#### Response:\n- **Success**: Returns a token or user information (depending on implementation).  \n- **Failure**: Returns an error message or validation error details.\n\n---\n\n## Features\n\n### Validation and Middleware\nThis backend uses **Express Validator** to validate incoming request data, ensuring all inputs meet the expected formats and constraints. Additionally, middleware is implemented to handle tasks like error handling, request logging, and authentication.\n\n## Technologies Used\n- **Express** - Backend framework\n- **Express Validator** - Middleware for validation\n- **Mongoose** - MongoDB ODM (Object Data Modeling)\n- **TypeScript** - Type-safe JavaScript\n- **React** - Frontend framework (mentioned for the full stack context)\n\n## Future Updates\n- Add more endpoints for profile management, post creation, and data retrieval.  \n- Implement token-based authentication with JWT.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickgbr%2Fdevtree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferickgbr%2Fdevtree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickgbr%2Fdevtree/lists"}