{"id":21357841,"url":"https://github.com/bobergot/tuiter-sandbox-server","last_synced_at":"2026-04-09T12:03:09.766Z","repository":{"id":63536528,"uuid":"568527685","full_name":"BobErgot/Tuiter-Sandbox-Server","owner":"BobErgot","description":" A Node.js backend for the Tuiter Sandbox app, emulating Twitter's functionality. Includes APIs for user profiles, tuits (tweets), and social interactions. Built with Express.js, MongoDB, and Mongoose for learning and development in modern web applications","archived":false,"fork":false,"pushed_at":"2024-03-21T19:13:02.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T18:30:56.558Z","etag":null,"topics":["backend","expressjs","javascript","mongodb","mongoose","nodejs","rest-api","server-side"],"latest_commit_sha":null,"homepage":"","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/BobErgot.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}},"created_at":"2022-11-20T20:02:33.000Z","updated_at":"2024-03-21T19:18:59.000Z","dependencies_parsed_at":"2024-03-21T20:37:45.776Z","dependency_job_id":null,"html_url":"https://github.com/BobErgot/Tuiter-Sandbox-Server","commit_stats":null,"previous_names":["bobergot/tuiter-sandbox-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobErgot%2FTuiter-Sandbox-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobErgot%2FTuiter-Sandbox-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobErgot%2FTuiter-Sandbox-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobErgot%2FTuiter-Sandbox-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BobErgot","download_url":"https://codeload.github.com/BobErgot/Tuiter-Sandbox-Server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830956,"owners_count":20354856,"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":["backend","expressjs","javascript","mongodb","mongoose","nodejs","rest-api","server-side"],"created_at":"2024-11-22T05:12:46.116Z","updated_at":"2025-12-30T21:05:04.630Z","avatar_url":"https://github.com/BobErgot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tuiter Sandbox Server\n\nThe Tuiter Sandbox Server is a Node.js backend designed to support the Tuiter Sandbox front-end application, a social media platform mimicry project focused on replicating Twitter's key features for educational purposes. This server handles data management for tuits (tweets), user profiles, and interactions such as likes, dislikes, replies, and retweets.\n\n## Features\n\n- RESTful API for tuits management (create, read, update, delete)\n- User management including create, read, update, and delete operations\n- Interaction tracking for tuits (likes, dislikes, replies, retuits)\n- MongoDB integration for persistent storage\n\n## Technologies\n\n- Node.js\n- Express.js\n- Mongoose\n- MongoDB\n- CORS for cross-origin resource sharing\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js and npm installed\n- MongoDB running locally or remotely\n\n### Installation\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/BobErgot/Tuiter-Sandbox-Server\n   ```\n2. **Install dependencies:**\n   ```bash\n   npm install\n   ```\n\n3. **Set up environment variables:**\n\n   Create a .env file in the root directory and specify your MongoDB connection string:\n   ```bash\n   DB_CONNECTION_STRING=mongodb://localhost:27017/tuiter\n   ```\n\n### Running the Server\n\nTo start the server, run:\n   ```bash\n   npm start\n   ```\n\nThe server will start running on http://localhost:4000 by default.\n\n## API Endpoints\n\nThe server exposes several RESTful endpoints for managing tuits and users:\n\n### Tuits\n- **Get All Tuits**\n    - `GET /api/tuits`\n    - Fetches all tuits.\n- **Create a Tuit**\n    - `POST /api/tuits`\n    - Creates a new tuit.\n- **Update a Tuit**\n    - `PUT /api/tuits/:tid`\n    - Updates a tuit by its ID.\n- **Delete a Tuit**\n    - `DELETE /api/tuits/:tid`\n    - Deletes a tuit by its ID.\n\n### Users\n- **Get All Users**\n    - `GET /api/users`\n    - Fetches all users.\n- **Get a User by ID**\n    - `GET /api/users/:uid`\n    - Fetches a user by ID.\n- **Create a User**\n    - `POST /api/users`\n    - Creates a new user.\n- **Update a User**\n    - `PUT /api/users/:uid`\n    - Updates a user by ID.\n- **Delete a User**\n    - `DELETE /api/users/:uid`\n    - Deletes a user by ID.\n\n## License\nDistributed under the MIT License. See the LICENSE file for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobergot%2Ftuiter-sandbox-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbobergot%2Ftuiter-sandbox-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobergot%2Ftuiter-sandbox-server/lists"}