{"id":24465840,"url":"https://github.com/tahsinalahi/orchid-movie-server","last_synced_at":"2026-04-16T10:02:14.359Z","repository":{"id":272016626,"uuid":"915280536","full_name":"TahsinAlahi/orchid-movie-server","owner":"TahsinAlahi","description":"Orchid Movie Server is a backend API built with Node.js and Express for managing movies and user favorites in a database. It supports CRUD operations and email-based authentication.","archived":false,"fork":false,"pushed_at":"2025-01-11T12:54:38.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T12:28:18.341Z","etag":null,"topics":["backend","backend-api","cors","expressjs","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"https://orchid-movie-server.vercel.app/","language":"JavaScript","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/TahsinAlahi.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":"2025-01-11T12:49:07.000Z","updated_at":"2025-01-11T12:58:26.000Z","dependencies_parsed_at":"2025-01-11T13:52:46.589Z","dependency_job_id":null,"html_url":"https://github.com/TahsinAlahi/orchid-movie-server","commit_stats":null,"previous_names":["tahsinalahi/orchid-movie-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TahsinAlahi/orchid-movie-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TahsinAlahi%2Forchid-movie-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TahsinAlahi%2Forchid-movie-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TahsinAlahi%2Forchid-movie-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TahsinAlahi%2Forchid-movie-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TahsinAlahi","download_url":"https://codeload.github.com/TahsinAlahi/orchid-movie-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TahsinAlahi%2Forchid-movie-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31880883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"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":["backend","backend-api","cors","expressjs","mongodb","nodejs"],"created_at":"2025-01-21T06:13:00.351Z","updated_at":"2026-04-16T10:02:14.342Z","avatar_url":"https://github.com/TahsinAlahi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Orchid Movie Server\n\n**Orchid Movie Server** is the backend API for the Orchid Movie client, built with **Node.js** and **Express**. This server handles movie data, including creation, updates, and deletions, as well as user-related operations like managing favorites.\n\n---\n\n## Table of Contents\n\n- [Features](#features)\n- [Getting Started](#getting-started)\n- [Installation](#installation)\n- [Routes](#routes)\n- [Scripts](#scripts)\n- [Dependencies](#dependencies)\n- [Dev Dependencies](#dev-dependencies)\n- [License](#license)\n- [Author](#author)\n\n---\n\n## Features\n\n- **Movies API**:\n  - Create, read, update, and delete movies.\n  - Fetch top-rated movies.\n- **User API**:\n  - Add, remove, and view favorite movies based on user email.\n\n---\n\n## Getting Started\n\n### Prerequisites\n\n- **Node.js** (v16 or later)\n- **MongoDB** for data storage\n- **Nodemon** for auto-reloading during development (optional but recommended)\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/your-username/orchid-movie-server.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd orchid-movie-server\n   ```\n\n3. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n4. Create a `.env` file for environment variables (see [Environment Variables](#environment-variables)):\n\n   ```bash\n   touch .env\n   ```\n\n---\n\n## Routes\n\n### Movies Routes (`/api/movies`)\n\n- **GET /api/movies**: Get all movies.\n- **POST /api/movies**: Create a new movie.\n- **GET /api/movies/top-rated**: Get the top-rated movies.\n- **GET /api/movies/:id**: Get a movie by ID.\n- **DELETE /api/movies/:id**: Delete a movie by ID.\n- **PATCH /api/movies/:id**: Update a movie by ID.\n\n### User Routes (`/api/users`)\n\n- **POST /api/users/favorites/:email**: Add a movie to the user's favorites (requires email).\n- **GET /api/users/favorites/:email**: Get all favorite movies of a user (requires email).\n- **DELETE /api/users/favorites/:email**: Remove a movie from the user's favorites (requires email).\n\n---\n\n## Scripts\n\n- **Start server**:\n\n  ```bash\n  npm run start\n  ```\n\n  Starts the server using `node server.js`.\n\n- **Start server with auto-reload**:\n\n  ```bash\n  npm run server\n  ```\n\n  Starts the server with `nodemon` for auto-reloading.\n\n- **Run tests**:\n\n  ```bash\n  npm run test\n  ```\n\n  Placeholder for future tests.\n\n---\n\n## Dependencies\n\n- **[express](https://www.npmjs.com/package/express)**: Web framework for Node.js.\n- **[mongodb](https://www.npmjs.com/package/mongodb)**: MongoDB database driver.\n- **[cors](https://www.npmjs.com/package/cors)**: Middleware for enabling Cross-Origin Resource Sharing.\n- **[dotenv](https://www.npmjs.com/package/dotenv)**: Loads environment variables from a `.env` file.\n- **[http-errors](https://www.npmjs.com/package/http-errors)**: HTTP error handling.\n\n---\n\n## Dev Dependencies\n\n- **[nodemon](https://www.npmjs.com/package/nodemon)**: Automatically restarts the server during development.\n- **[eslint](https://www.npmjs.com/package/eslint)**: Linting for JavaScript and Node.js.\n- **[@eslint/js](https://www.npmjs.com/package/@eslint/js)**: ESLint configuration for JavaScript.\n- **[@types/express](https://www.npmjs.com/package/@types/express)**: TypeScript typings for Express.\n- **[@types/mongodb](https://www.npmjs.com/package/@types/mongodb)**: TypeScript typings for MongoDB.\n\n---\n\n## License\n\nThis project is licensed under the ISC License.\n\n---\n\n## Author\n\n- **Tahsin Alahi**\n  - [GitHub](https://github.com/TahsinAlahi)\n  - [LinkedIn](https://www.linkedin.com/in/tahsinalahi/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftahsinalahi%2Forchid-movie-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftahsinalahi%2Forchid-movie-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftahsinalahi%2Forchid-movie-server/lists"}