{"id":24532693,"url":"https://github.com/follownaim/gear-arena-server","last_synced_at":"2026-05-04T13:35:20.619Z","repository":{"id":271281076,"uuid":"897895776","full_name":"FollowNaim/Gear-Arena-Server","owner":"FollowNaim","description":"GearArena Server 🌐 - Backend for the GearArena platform, crafted with Node.js, Express.js, MongoDB, and CORS. It features RESTful APIs for user authentication, product management, and CRUD operations, ensuring seamless integration with the client-side for a superior e-commerce experience.","archived":false,"fork":false,"pushed_at":"2025-01-08T08:01:16.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T21:42:53.500Z","etag":null,"topics":["cors","expressjs","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"https://geararena-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/FollowNaim.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-12-03T12:35:31.000Z","updated_at":"2025-01-08T08:04:08.000Z","dependencies_parsed_at":"2025-01-06T19:22:46.648Z","dependency_job_id":"2643c3e0-2bc0-49b0-a437-dd31ac86a902","html_url":"https://github.com/FollowNaim/Gear-Arena-Server","commit_stats":null,"previous_names":["follownaim/gear-arena-server","ar-naim/gear-arena-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FollowNaim/Gear-Arena-Server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowNaim%2FGear-Arena-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowNaim%2FGear-Arena-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowNaim%2FGear-Arena-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowNaim%2FGear-Arena-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FollowNaim","download_url":"https://codeload.github.com/FollowNaim/Gear-Arena-Server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowNaim%2FGear-Arena-Server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32609934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"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":["cors","expressjs","mongodb","nodejs"],"created_at":"2025-01-22T10:18:04.046Z","updated_at":"2026-05-04T13:35:20.601Z","avatar_url":"https://github.com/FollowNaim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GearArena Server\n\nThe backend for **GearArena**, a sports equipment e-commerce platform, built with **Node.js**, **Express**, **MongoDB**, and **CORS**. This server provides APIs for user authentication, product management, and other essential functionalities.\n\n---\n\n## 🌐 Live API URL\n\n[GearArena Server](https://geararena-server.vercel.app)\n\n---\n\n## Features\n\n- **RESTful API**: Endpoints for managing users, sports equipment, and product categories.\n- **MongoDB Integration**: Secure data storage and retrieval with MongoDB.\n- **User Authentication**: Implements JWT-based authentication for secure user sessions.\n- **CORS Enabled**: Ensures seamless API communication between client and server.\n- **Robust Error Handling**: Provides clear error messages for invalid requests.\n- **CRUD Operations**: Supports Create, Read, Update, and Delete functionalities for resources.\n\n---\n\n## API Endpoints\n\n### Products\n\n- `GET /api/products`: Fetch all products.\n- `GET /api/products?limit=your_limit`: Fetch limited products.\n- `GET /api/products?sort=[ascending or descending]`: Sort the products.\n- `GET /api/products?limit=your_limit\u0026sort=[ascending or descending]`: Limit the products and then Sort them.\n- `POST /api/products`: Add a new product (Admin only).\n- `GET /api/products/:id`: Fetch product details by ID.\n- `PUT /api/products/:id`: Update product details (Admin only).\n- `DELETE /api/products/:id`: Delete a product (Admin only).\n\n### Users\n\n- `POST /api/users`: Add user details (Admin only).\n\n---\n\n## ⚙️ Technologies Used\n\n- **Node.js**: Backend runtime environment.\n- **Express**: Framework for building RESTful APIs.\n- **MongoDB**: NoSQL database for storing application data.\n- **CORS**: Middleware for enabling cross-origin requests.\n- **JWT**: Secure authentication and authorization. (Future)\n\n---\n\n## 📦 Dependencies\n\n- **cors** (^2.8.5) – A Node.js middleware to enable Cross-Origin Resource Sharing (CORS) for your Express app.\n- **dotenv** (^16.4.6) – A library to load environment variables from a `.env` file into `process.env`.\n- **express** (^4.21.1) – A web application framework for Node.js, used to build APIs and server-side applications.\n- **mongodb** (^6.11.0) – A Node.js driver for MongoDB, allowing interaction with a MongoDB database.\n\n---\n\n## 🔧 How to Run\n\n1. **Clone the repository.**\n\n```bash\n   git clone https://github.com/FollowNaim/Gear-Arena-Server\n   cd Gear-Arena-Server\n```\n\n2. **Install Dependencies**\n\n```bash\nnpm install\n```\n\n3. **Setup Environment Variables**\n\n- create .env in the root directory.\n- create a collection on mongodb atlas.\n- Add `DB_USER, DB_PASS` variable and add your database username and password.\n\n4. **Run the application**\n\n```bash\nnpm run dev\n```\n\n5. **Access the app**\n\n- Open http://localhost:5000 in your browser.\n\n---\n\n## 🛠️ Deployment\n\n- Hosted on Netlify or Vercel for a fast and reliable experience.\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! To contribute:\n\n1. Fork the repository.\n2. Create a new feature branch: `git checkout -b feature-name`.\n3. Commit your changes: `git commit -m \"Add feature name\"`.\n4. Push to the branch: `git push origin feature-name`.\n5. Submit a pull request.\n\n---\n\n## Contact\n\nFor queries or suggestions, please contact:\n\n- **Name**: Naim\n- **Email**: [naimxf@gmail.com](mailto:naimxf@gmail.com)\n- **Portfolio**: [naim.vercel.app](https://naim.vercel.app)\n- **LinkedIn**: [Ataur Rahman Naim](https://www.linkedin.com/in/ataurrahmannaim/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollownaim%2Fgear-arena-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffollownaim%2Fgear-arena-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollownaim%2Fgear-arena-server/lists"}