GreenPath Market is an innovative e-commerce platform designed to connect rural farmers and producers directly with consumers and companies, eliminating intermediaries and promoting sustainable agriculture. The platform provides a digital marketplace where producers can sell their goods, manage their shops, and reach a wider audience, while consumers can discover and purchase fresh, sustainable products.
- User registration and authentication
- Shop management for producers
- Product catalog with categories
- Search and discovery functionality
- Shopping cart and order management
- Payment processing
- Admin panel for platform management
- Responsive design for mobile and desktop
- Real-time inventory management
- FastAPI: High-performance web framework for building APIs
- SQLAlchemy: ORM for database interactions
- Pydantic: Data validation and serialization
- MySQL: Database management system
- Vanilla JavaScript: No framework dependencies
- HTML5: Semantic markup
- CSS3: Modern styling with custom properties
- Vite: Fast build tool and development server
- Axios: HTTP client for API requests
- MySQL: Relational database
- Entity-Relationship Diagram: Database schema design
greenpath_market/
├── backend/ # FastAPI backend
│ ├── api/ # API endpoints
│ ├── crud/ # Database operations
│ ├── models/ # SQLAlchemy models
│ ├── schemas/ # Pydantic schemas
│ ├── config/ # Configuration
│ ├── db/ # Database setup
│ └── main.py # Application entry point
├── frontend/ # Vanilla JS frontend
│ ├── src/
│ │ ├── assets/ # CSS, JS, images
│ │ ├── views/ # HTML pages
│ │ └── components/ # Reusable components
│ ├── index.html # Landing page
│ └── vite.config.js # Build configuration
├── database/ # Database scripts and docs
│ ├── scripts/ # SQL scripts
│ └── README.md # Database documentation
├── docs/ # Additional documentation
└── README.md # This file
- Python 3.8+
- Node.js 14+
- MySQL 8.0+
-
Navigate to backend directory:
cd backend -
Create virtual environment:
python -m venv .venv source .venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Set up database configuration in
.envfile -
Run the application:
fastapi dev main.py
-
Navigate to frontend directory:
cd frontend -
Install dependencies:
npm install
-
Start development server:
npm run dev
- Run the database initialization scripts in
database/scripts/ - Configure connection in backend config
- Start the backend server
- Start the frontend development server
- Access the application at
http://localhost:5173 - API documentation available at
http://localhost:8000/docs
For detailed API endpoints and usage examples, see Backend README
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Juan Cardona - Development & Design
- Forlan Ordoñez - Development & Design
- Daniel Rojas - Development
- Camilo Parra - Development
- Wilson Delgado - Development
GreenPath Market - Empowering rural producers through digital innovation 🌱
