{"id":22195302,"url":"https://github.com/andrewhamerly/social-network-api","last_synced_at":"2026-04-10T11:02:28.706Z","repository":{"id":247644392,"uuid":"822772658","full_name":"andrewhamerly/social-network-api","owner":"andrewhamerly","description":"This repository contains the implementation of a social network API built with MongoDB, Express.js, and Mongoose ODM. This API allows users to share their thoughts, react to friends' thoughts, and create a friend list, providing a backend foundation for a social network web application.","archived":false,"fork":false,"pushed_at":"2024-07-09T18:56:10.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T21:39:00.391Z","etag":null,"topics":["express-api","express-js","expressjs","insomnia","mongodb","mongoose","node","nodejs","nosql","nosql-database","odm","odm-database"],"latest_commit_sha":null,"homepage":"https://drive.google.com/file/d/1wtbHc_2JTjLM4eJ-wUGBa--nY75Z_LA8/view?usp=sharing","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrewhamerly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-07-01T19:41:58.000Z","updated_at":"2024-07-09T19:03:01.000Z","dependencies_parsed_at":"2024-07-09T22:42:05.735Z","dependency_job_id":"32e13806-69cb-48f3-a588-81a3f269db18","html_url":"https://github.com/andrewhamerly/social-network-api","commit_stats":null,"previous_names":["andrewhamerly/social-network-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrewhamerly/social-network-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewhamerly%2Fsocial-network-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewhamerly%2Fsocial-network-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewhamerly%2Fsocial-network-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewhamerly%2Fsocial-network-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrewhamerly","download_url":"https://codeload.github.com/andrewhamerly/social-network-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrewhamerly%2Fsocial-network-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31639524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: 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":["express-api","express-js","expressjs","insomnia","mongodb","mongoose","node","nodejs","nosql","nosql-database","odm","odm-database"],"created_at":"2024-12-02T13:17:52.076Z","updated_at":"2026-04-10T11:02:28.680Z","avatar_url":"https://github.com/andrewhamerly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social Network API MongoDB\nThis repository contains the implementation of a social network API built with MongoDB, Express.js, and Mongoose ODM. This API allows users to share their thoughts, react to friends' thoughts, and create a friend list, providing a backend foundation for a social network web application.\n\n## Table of Contents\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Walkthrough Video](#walkthrough-video)\n- [Technologies Used](#technologies-used)\n- [License](#license)\n- [Contributing](#contributing)\n- [Questions](#questions)\n\n## Features\n\n- **User Management**: Create, update, and delete users.\n- **Thought Management**: Create, update, and delete thoughts posted by users.\n- **Reaction Management**: Add and remove reactions to thoughts.\n- **Friend Management**: Add and remove friends from a user's friend list.\n- **NoSQL Database**: Uses MongoDB for handling large amounts of unstructured data efficiently.\n\n## Installation\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/andrewhamerly/social-network-api.git\n   ```\n\n2. **Navigate to the project directory:**\n    ```bash\n    cd social-network-api\n    ```\n\n3. **Install dependencies:**\n    ```bash\n    npm install\n    ```\n\n## Usage\n\n1. **Start the application:**\n    ```bash\n    npm start\n    ```\n\n2. **Testing the API routes:**\n    Use Insomnia or a similar API client to test the following routes:\n    ### Users\n    - GET `/api/users` Get all users.\n    - POST `/api/users` Create a new user.\n    - PUT `/api/users/:userId` Update a user by ID.\n    - DELETE `/api/users/:userId` Delete a user by ID.\n    - POST `/api/users/:userId/friends/:friendId` Add a friend to a user's friend list.\n    - DELETE `/api/users/:userId/friends/:friendId` Remove a friend from a user's friend list.\n    ### Thoughts\n    - GET `/api/thoughts` Get all thoughts.\n    - POST `/api/thoughts` Create a new thought.\n    - PUT `/api/thoughts/:thoughtId` Update a thought by ID.\n    - DELETE `/api/thoughts/:thoughtId` Delete a thought by ID.\n    ### Reactions\n    - POST `/api/thoughts/:thoughtId/reactions` Add a reaction to a thought.\n    - DELETE `/api/thoughts/:thoughtId/reactions/:reactionId` Remove a reaction from a thought.\n\n## Walkthrough Video\n\n[Click here to watch the walkthrough video](https://drive.google.com/file/d/1wtbHc_2JTjLM4eJ-wUGBa--nY75Z_LA8/view?usp=sharing)\n\n## Technologies Used\n\n- **Express.js**: For building the API routes and handling requests.\n- **MongoDB**: A NoSQL database chosen for its flexibility and performance with large datasets.\n- **Mongoose**: An ODM (Object Data Modeling) library for MongoDB and Node.js, used to define schemas and interact with the database.\n- **Insomnia**: Used for testing the API endpoints.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and create a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.\n\n## Questions\n\nIf you have any questions about the project, please feel free to contact me via email at [contact@andrewhamerly.com](mailto:contact@andrewhamerly.com). You can also find more of my work on [GitHub](https://github.com/andrewhamerly).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewhamerly%2Fsocial-network-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewhamerly%2Fsocial-network-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewhamerly%2Fsocial-network-api/lists"}