Skip to content

atlp-rwanda/trojans-ec-fe

Repository files navigation

Trojans Store Ecommerce Project

Trojans Store is an ecommerce project worked on by trainees of Andela Cohort 25 of group trojans

Badges

CircleCI Coverage Status Maintainability

Description

This project is dealing with the frontend of an ecommerce project which has three types of users; a buyer, a seller and an admin. The app has a login functionality, products,a cart for buyer,notifications,a public chat, orders, sales; it has a dashboard according to what role the user has.

An admin can manage all users ; changing roles and making a user as active or inactive. A seller should see all products that belong to him/her and can make a product as either available or not available A buyer should be able to see all available products on the homepage add items to their cart, wish for a product, and track his/her orders.

Key Technologies

  • React JS
  • Redux

Installation

  • Clone the repository and install
  git clone [email protected]:atlp-rwanda/trojans-ec-fe.git
  • Go to folder and install dependencies
    cd trojans-ec-fe
    npm install

Testing and Starting the server

Testing

 npm run test

Starting

 npm run start

Environment Variables

Fill in your environment variables as you will find in .env.example

Dependencies

Main dependencies used in the project are:

"react-redux": "^8.0.5",
"react-router-dom": "^6.10.0",
"react-chartjs-2": "^5.2.0",
"react-hook-form": "^7.43.9",
"tailwindcss": "^3.2.7",
"webpack": "^5.77.0",
"sass": "^1.60.0",
"@mui/material": "^5.12.2",
"axios": "^1.3.4",

Test setup and execution

Unit testing on this app is setup using the following dependencies

 "jest": "^29.5.0",
 "jest-environment-jsdom": "^29.5.0",

Project Preview