Welcome to the FYSI Marketplace frontend project! This repository contains the Vite-based frontend application for our eco-friendly e-commerce platform. The goal of FYSI Marketplace is to promote sustainable shopping by connecting vendors who offer eco-friendly products with conscious consumers. This README will guide you through the project overview, setting up your development environment, and contributing to the project.
- Project Overview
- Features
- Tech Stack
- Getting Started
- Development Setup
- Development Workflow
- Testing
- Building for Production
- Deployment
- Contributing
- Communication
The FYSI Marketplace frontend provides the user interface for the core functionalities of the platform, enabling users to:
- Register and manage their accounts (User Management)
- Browse, search, and filter eco-friendly products (Product Browsing)
- Manage their shopping cart and checkout process (Shopping Cart and Checkout)
- For vendors, manage their product listings and sales (Vendor Dashboard)
- For admins, manage users, vendors, and platform settings (Admin Dashboard)
- Display eco-certifications and other green initiatives
- User Management: Registration, login, and profile management.
- Product Search & Browsing: Allows users to explore eco-friendly products.
- Shopping Cart & Checkout: Manage cart items and proceed with secure checkout.
- Vendor Dashboard: Vendors can list products, view sales data, and manage inventory.
- Admin Dashboard: Admins oversee the entire marketplace and manage users/vendors.
- Eco-Certifications: Highlight sustainable products with proper certifications.
- Frontend Framework: Vite with React
- CSS Framework: Tailwind CSS for styling
- Testing Framework: Jest for unit testing
- Version Control: Git and GitHub for collaboration
Ensure the following software is installed on your local machine:
-
Clone the repository:
git clone https://github.com/Techies-Collab-and-Upskill-Live-Project/Greenhouse-frontend.git cd Greenhouse-frontend
-
Install dependencies:
npm install # or yarn install
-
Start the development server:
npm run dev # or yarn dev
The application will run at http://localhost:5173 (or another port if 5173 is occupied).
-
Branching Strategy:
- Create a new branch for each feature or bug fix:
git checkout -b your-feature-name
- After completing your changes, commit with clear and descriptive messages:
git commit -m "Add product listing component"
- Create a new branch for each feature or bug fix:
-
Pushing Changes:
- Push your branch to the remote repository:
git push origin your-feature-name
- Push your branch to the remote repository:
-
Creating Pull Requests (PRs):
- Open a PR on GitHub, assign a team member for review, and ensure the changes meet project guidelines before merging.
We are using Jest for unit testing. Ensure tests are written for components and utility functions. To run tests:
npm run test
# or
yarn test
To create a production-ready build, run:
npm run build
# or
yarn build
This will generate optimized files in the dist/
directory.
Deployment is handled via Vercel. Check out the Next.js deployment documentation for details on how to deploy the application.
- Fork the repository and clone it locally.
- Create a new feature branch for your work.
- Commit your changes with clear messages.
- Open a pull request (PR) for review.
- Address any feedback from the reviewer and update your PR.
- Once approved, your changes will be merged.
For communication and collaboration:
- WhatsApp: Daily team discussions and announcements.
- GitHub Issues: Task tracking, discussions, and bug reporting.
- GitHub Project Board: Update the board regularly to reflect progress on tasks.
Check out our Next.js deployment documentation for more details.
Happy coding! 🚀😄