Backend API for GreenVue.eu - an EU-focused sustainable marketplace for selling pre-owned items.
GreenVue is a sustainable marketplace platform focused on the EU market, designed to facilitate the buying and selling of pre-owned items. This repository contains the backend API that powers both the mobile app and web platform.
Our mission is to promote sustainability by extending the lifecycle of products and reducing waste through a user-friendly marketplace that encourages reuse over disposal.
- Language: Go 1.24
- Web Framework: Fiber v2
- Database: Supabase
- Image Storage: Supabase Storage Buckets
- Authentication: JWT (JSON Web Tokens)
- API Documentation: (TBD)
- Containerization: Docker
- Hosting: Railway
-
Authentication
- Registration and login
- JWT-based authentication
- Refresh token support
-
Listings Management
- Create, retrieve and delete listings
- Category-based listing organization
- Image upload support (WebP conversion)
- Seller-specific listings
-
User Profiles
- User information management
- Seller profiles
-
Chat System
- Real-time messaging via WebSockets
- Conversation management
- Message history
-
Reviews & Ratings
- Post and retrieve product reviews
-
Favorites
- Save and manage favorite listings
-
Security
- Rate limiting
- CORS protection
- Input validation
- Structured error handling
GreenVue takes security seriously. Our security practices include:
- Environment variable management for credentials
- Secure JWT implementation
- Rate limiting to prevent abuse
- Input validation and sanitization
- Regular dependency updates
For vulnerability reporting, please see our security policy.
Future development plans:
- User profile management improvements
- Password reset functionality
- Improving Email verification system
- Search API with filtering capabilities
- Pagination for listing results
- Order management system
- Purchase history endpoints
- Enhanced review system
This project is licensed under the MIT License - see the LICENSE file for details.