{"id":21247313,"url":"https://github.com/lorindi/tetranoma-express-api","last_synced_at":"2025-03-15T05:14:19.698Z","repository":{"id":261093451,"uuid":"882720129","full_name":"lorindi/Tetranoma-Express-Api","owner":"lorindi","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-12T18:06:07.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T18:38:05.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tetranoma-express-api.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/lorindi.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-11-03T15:30:20.000Z","updated_at":"2025-03-12T18:06:11.000Z","dependencies_parsed_at":"2024-11-04T17:31:46.070Z","dependency_job_id":"0ee687d4-dc41-413a-89b3-09a63e301cd1","html_url":"https://github.com/lorindi/Tetranoma-Express-Api","commit_stats":null,"previous_names":["lorindi/tetranoma-express-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorindi%2FTetranoma-Express-Api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorindi%2FTetranoma-Express-Api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorindi%2FTetranoma-Express-Api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorindi%2FTetranoma-Express-Api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lorindi","download_url":"https://codeload.github.com/lorindi/Tetranoma-Express-Api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685582,"owners_count":20330982,"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":[],"created_at":"2024-11-21T02:18:40.347Z","updated_at":"2025-03-15T05:14:19.673Z","avatar_url":"https://github.com/lorindi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tetranoma Express API\n\n## 🚀 Description\nA REST API for a collectible figures e-commerce platform, built with Express.js and MongoDB. The API provides comprehensive functionality for user management, product handling, order processing, and administrative controls.\n\nThis project serves as a robust backend solution for an online store specializing in collectible figures, featuring advanced search capabilities, rating systems, and detailed analytics for business intelligence.\n\n## 🛠️ Technologies\n- **Node.js** \u0026 **Express.js** - for server-side implementation\n- **MongoDB** with **Mongoose** - for database management\n- **JWT** (JSON Web Tokens) - for authentication\n- **Bcrypt** - for password hashing\n- **Cookie Parser** - for cookie management\n- **CORS** - for cross-origin requests\n- **Dotenv** - for environment variable management\n\n## 📦 Core Features\n\n### 👤 Authentication \u0026 Authorization\n- User registration with email verification\n- Secure login system\n- JWT-based authentication\n- Role-based access control (user/admin)\n- Password recovery system\n\n### 🏪 Product Management\n- Complete CRUD operations for figures\n- Advanced filtering and sorting options\n- Rating and review system\n- Favorites functionality\n- Stock management\n- Image handling\n\n### 🛒 Shopping Cart\n- Add/remove products\n- Quantity management\n- Checkout process\n- Multiple payment methods support\n- Order tracking\n\n### 📊 Admin Dashboard\n- Comprehensive user management\n- Order processing and tracking\n- Analytics and reporting\n- Product inventory management\n- Sales statistics\n- Customer insights\n\n### 📈 Additional Features\n- Real-time stock updates\n- Advanced search functionality\n- Order history tracking\n- User activity monitoring\n- Performance analytics\n- Security features\n- API rate limiting\n- Error logging and monitoring\n\n## 🚀 Getting Started\n\n1. Clone the repository:\n   git clone https://github.com/your-repo/tetranoma-express-api.git\n2. Install dependencies:\n   npm install\n3. Set up environment variables:\n   cp .env.example .env\n   Fill in the necessary values\n4. Set up MongoDB:\n- Install MongoDB locally or use MongoDB Atlas\n- Update connection string in .env file\n\n5. Start the server:\n   npm start\n\n\n## 📝 API Documentation\n\n### Authentication Endpoints\n- POST /api/auth/create-account - Register new user\n- POST /api/auth/sign-in - User login\n- POST /api/auth/logout - User logout\n\n### Product Endpoints\n- GET /api/figures/list - List all figures\n- POST /api/figures/create - Create new figure\n- PUT /api/figures/update/:id - Update figure\n- DELETE /api/figures/delete/:id - Delete figure\n\n### Cart Endpoints\n- POST /api/cart/add - Add to cart\n- GET /api/cart - Get cart contents\n- DELETE /api/cart/remove/:itemId - Remove from cart\n- POST /api/cart/checkout - Process checkout\n\n### Admin Endpoints\n- GET /api/admin/users-with-activity - Get user activity\n- PUT /api/admin/users/role - Update user roles\n- GET /api/admin/orders - Manage orders\n- GET /api/admin/dashboard-stats - View statistics\n\n## 🔒 Security Features\n- Password hashing with bcrypt\n- JWT token authentication\n- Role-based access control\n- Request rate limiting\n- Input validation\n- XSS protection\n- CORS configuration\n\n## 🤝 Contributing\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 📄 License\nThis project is licensed under the ISC License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florindi%2Ftetranoma-express-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florindi%2Ftetranoma-express-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florindi%2Ftetranoma-express-api/lists"}