The front-end of Eagle E-commerce utilizes React for a modern, user-friendly interface, while Node.js powers its backend, ensuring a seamless shopping experience
This project was built using the PERN (PostgreSQL, Express.js, React.js, Node.js) stack, additionally with Vite and Typescript.
To run the app locally, follow these steps:
- Clone the repository:
git clone https://github.com/atlp-rwanda/eagles-ec-fe.git- Change working dir to cloned repo:
cd eagle-ec-fe- Install dependencies:
npm install- Run developmnt server:
npm run dev- Run unit test:
npm run test- **Tun test in watch mode
npm run test:watch- **Generate test coverage
npm run test:coverageWrite your test by creating a file with .test.tsx extetion under test directory.
docker pull mugemanebertin/eagle-ec-fe:latestThis command downloads the Docker image mugemanebertin/eagle-ec-fe from Docker Hub.
docker run -d --name eagle-ec-fe-container -p 5173:5173 mugemanebertin/eagle-ec-fe:latestThis command starts a Docker container named eagle-ec-fe-container, mapping port 5173 on your host to port 5173 in the container. The -d flag runs the container in detached mode.
You can now access the Eagle E-commerce application by navigating to http://localhost:5173 in your web browser.