This repository contains the frontend application for a simple shopping system built using React/Next.js and state management with xState.
This application is deployed on Vercel. You can access the live deployment here.
To run this application locally, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/energywraith/basket-cart.git
- Navigate to the project directory.
- Create a
.env.local
file in the root directory of the project. - In the
.env.local
file, set theAPI_URL
variable to the URL of your backend API. For example:
API_URL=http://localhost:8000
- Install dependencies using npm:
npm install
- Start the application:
npm run dev
Open http://localhost:3000 with your browser to see the result.