{"id":19900328,"url":"https://github.com/muslehud77/adventureally-server","last_synced_at":"2026-01-19T05:32:32.897Z","repository":{"id":247733854,"uuid":"826690512","full_name":"Muslehud77/AdventureAlly-Server","owner":"Muslehud77","description":"AdventureAlly is an e-commerce website backend built using Node.js and MongoDB. It provides endpoints for user authentication, product management, and shopping cart functionality.","archived":false,"fork":false,"pushed_at":"2024-08-04T11:33:38.000Z","size":187,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T18:16:25.368Z","etag":null,"topics":["cookie-parser","expressjs","jwt-authentication","mongodb","mongoose","nodejs","stripe-payments","typescript","zod-validation"],"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/Muslehud77.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-07-10T07:33:23.000Z","updated_at":"2024-10-15T10:40:12.000Z","dependencies_parsed_at":"2024-07-22T16:14:07.930Z","dependency_job_id":"048f46bf-caa7-4251-bf02-162171d0f2ce","html_url":"https://github.com/Muslehud77/AdventureAlly-Server","commit_stats":null,"previous_names":["muslehud77/adventureally-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Muslehud77/AdventureAlly-Server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muslehud77%2FAdventureAlly-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muslehud77%2FAdventureAlly-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muslehud77%2FAdventureAlly-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muslehud77%2FAdventureAlly-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Muslehud77","download_url":"https://codeload.github.com/Muslehud77/AdventureAlly-Server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muslehud77%2FAdventureAlly-Server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28561858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"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":["cookie-parser","expressjs","jwt-authentication","mongodb","mongoose","nodejs","stripe-payments","typescript","zod-validation"],"created_at":"2024-11-12T20:11:58.177Z","updated_at":"2026-01-19T05:32:32.853Z","avatar_url":"https://github.com/Muslehud77.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# AdventureAlly\n\nAdventureAlly is an e-commerce website backend built using Node.js and MongoDB. It provides endpoints for user authentication, product management, and shopping cart functionality.\n\n## Features\n\n- **User Authentication:** Users can sign up and sign in securely using JWT tokens.\n- **Role-based Access Control:** Supports roles for users (user, admin) with different access permissions.\n- **Product Management:** CRUD operations for managing products, including creation, update, deletion, and retrieval.\n- **Shopping Cart:** Users can add products to their cart, view their cart, and manage cart items.\n- **Additional Features:** Includes features like getting random products, best-selling products, etc.\n\n## Getting Started\n\nTo get started with AdventureAlly, follow these steps:\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Muslehud77/AdventureAlly-Server.git\n   cd AdventureAlly-Server\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Set up environment variables:\n   Create a `.env` file in the root directory and add the following:\n\n   ```dotenv\n   NODE_ENV=development\n   PORT=5000\n   DATABASE_URI=mongodb://localhost:27017/adventureally_db\n   HASH_SALT=12\n   DEFAULT_PASS=your_default_password\n   JWT_ACCESS_SECRET=your_access_secret_key\n   JWT_REFRESH_SECRET=your_refresh_secret_key\n   JWT_ACCESS_EXPIRES_IN=7d\n   JWT_REFRESH_EXPIRES_IN=30d\n   ```\n\n4. Start the server:\n\n   ```bash\n   npm run start:dev\n   ```\n\n5. Use API endpoints as described in the documentation.\n\n## API Documentation\n\n- **POST /signup:** Create a new user account.\n- **POST /signin:** Authenticate and obtain JWT tokens.\n- **POST /refreshToken:** Refresh the access token.\n- **POST /api/products:** Create a new product (Admin only).\n- **GET /api/products:** Get all products.\n- **GET /api/products/:id:** Get a product by ID.\n- **PATCH /api/products/:id:** Update a product (Admin only).\n- **DELETE /api/products/:id:** Delete a product (Admin only).\n- **POST /api/carts:** Add a product to the shopping cart (User only).\n- **GET /api/my-cart:** View items in the user's shopping cart.\n- **GET /api/best-selling:** Get best-selling products.\n- **GET /api/random-products:** Get random products.\n\nNote: This is not an exhaustive list of all available APIs. There are many more endpoints to explore and use in the project.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and create a pull request with your improvements.\n\n## Client Side\n\nFor the client-side of this project, visit the following links:\n\n[![Frontend Live Demo](https://img.shields.io/badge/Frontend%20Live%20Demo-AdventureAlly-blue?style=for-the-badge\u0026logo=appveyor)](https://adventure-ally.netlify.app/)\n[![Client Repository](https://img.shields.io/badge/Client%20Repository-AdventureAlly-blue?style=for-the-badge\u0026logo=github)](https://github.com/Muslehud77/AdventureAlly-client)\n\n## Necessary Setup for Client\n\nTo set up the client-side of AdventureAlly, follow these steps:\n\n1. Clone the client repository:\n   ```bash\n   git clone https://github.com/Muslehud77/AdventureAlly-client.git\n   cd AdventureAlly-client\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n   If you encounter issues, use the following command:\n\n   ```bash\n   npm install --force\n   ```\n\n3. Set up environment variables:\n   Create a `.env.local` file in the root directory and add the following:\n\n   ```dotenv\n   VITE_IMAGEBB_API=your_imagebb_api_key\n   VITE_BASE_URL=http://localhost:5000/api\n   ```\n\n4. Start the development server:\n\n   ```bash\n   npm run dev\n   ```\n\n\n\n---\n\nThank you for checking out AdventureAlly! If you have any questions or feedback, feel free to reach out.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuslehud77%2Fadventureally-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuslehud77%2Fadventureally-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuslehud77%2Fadventureally-server/lists"}