Open Issues Need Help
View All on GitHubAI Summary: Develop backend functionality for a swap/trade offer system. This includes designing a data model for offers, creating RESTful APIs for offer creation, retrieval, acceptance, and declination, implementing robust ownership verification, and ensuring atomic updates of asset ownership and offer status upon acceptance. The system should handle various scenarios, including offer failures and user notifications.
AI Summary: Implement RESTful APIs for managing tradable assets. This includes designing an asset data model, creating endpoints for GET, POST, PUT, and DELETE operations, implementing admin-only access control using role-based middleware, and robust input validation and error handling. The system should handle various HTTP status codes appropriately and consider features like pagination, filtering, and audit logging.
AI Summary: Implement rate limiting and basic security middleware for the SwapTrade backend API. This involves integrating a rate limiter (like express-rate-limit), limiting login attempts and access to sensitive endpoints, adding HTTP header security with Helmet, and securely configuring CORS.
AI Summary: Implement secure user authentication and authorization for a SwapTrade backend. This involves creating registration and login endpoints using JWTs for authentication, securely hashing passwords, and implementing role-based access control (user and admin roles) with appropriate middleware for JWT verification and authorization.
AI Summary: Implement a real-time notification system for the SwapTrade backend using WebSockets or a third-party service. This involves setting up the server/service, defining and emitting relevant events (offer creation, acceptance, decline, status changes), managing client subscriptions and unsubscribing, storing notification history per user, and ensuring secure connections and efficient event broadcasting.
AI Summary: Implement admin dashboard endpoints for a swap trading platform. This includes creating endpoints for managing users (banning, activation), viewing assets and offers, and displaying platform metrics such as total users and active trades. Access should be restricted to admin users only.
AI Summary: Implement automated unit and integration tests for the SwapTrade backend, including setting up a testing framework (e.g., Jest, Mocha), writing tests for core modules (authentication, asset management, offers), and integrating tests into the CI pipeline.
AI Summary: Develop a REST API endpoint (`GET /users/:id/history`) for the SwapTrade backend that retrieves a user's transaction and activity history. This includes creating a data model for transactions and activities, implementing filtering by event type and date, and summarizing key statistics like completed trades and assets swapped.