A frontend application built with React for Nutrilicious, a healthy food marketplace. The application allows users to browse products, add them to the cart, and enables company administrators to manage their products.
-
User Authentication: Users can log in securely to access their account and perform various actions like browsing products, managing the cart, and making purchases.
-
Product Management: Company administrators can add, update, and delete their products, ensuring the availability of the latest offerings in the marketplace.
-
Cart Management: Users can add products to their cart, view the contents of their cart, update quantities, and remove products as needed.
The project structure is organized as follows:
- Components: Contains reusable React components for building the user interface.
- Utils: Contains utility functions and constants used throughout the application.
- Services: Contains service modules for making API calls to the backend.
- Styles: Contains CSS or SCSS files for styling the components.
- Tests: Contains Jest and React Testing Library tests for testing React components and functionality.
-
Clone the repository:
git clone https://github.com/DevDesiree/P10-Nutricilious_FrontEnd.git
-
Navigate to the project directory:
cd project-directory
-
Install dependencies using npm:
npm install
-
Start the development server:
npm run dev
- Log in using your credentials or sign up for a new account.
- Browse products from various companies and add them to your cart.
- Manage your cart by updating quantities or removing products.
- Company administrators can access the admin dashboard to manage their products.
- React: JavaScript library for building user interfaces.
- React Router DOM: Allows navigation between different pages in a React application.
- TwElements React: A UI library for building responsive and accessible React components.
- Axios: Promise-based HTTP client for making requests to the backend API.
- Vite: Frontend build tool for fast and efficient development.
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License.