Welcome to SmartBuy Store! This project is an ecommerce platform powered by the BestBuy API. It allows users to browse and purchase a wide range of electronic products, gadgets and some other cool stuff!
Before running the project, ensure that you have the following installed:
- Node.js (version 18.16.0)
- PNPM (version 8.2.0)
- Clone the repository:
git clone https://github.com/pedropcruz/smartbuy-store
- Navigate to the project directory:
cd smartbuy-store
- Install dependencies
pnpm install
- Obtain an API key from the BestBuy Developer Portal.
- Rename the .env.example file to .env.
- Open the .env file and replace
<YOUR_API_KEY>
with your actual BestBuy API key.
To start the development server, run the following command:
pnpm dev
Access the application in your browser at http://localhost:3000.
To run the unit tests, use the following command:
pnpm test:unit
This will execute all the unit tests and display the test results.
Before you run this, make sure you have
- Start the development server (if not already running):
pnpm test:e2e
The e2e tests will simulate user interactions and verify the functionality of the application.