Skip to content

unsri-hackers/ecommerce-ui

Repository files navigation

Deuvox Frontend

License Netlify Status

Getting Started 🚀

Installation 💻

Start with cloning this repo on your local machine:

$ git clone https://github.com/unsri-hackers/ecommerce-ui.git
$ cd ecommerce-ui

To install and set up the library, run:

$ yarn install

Usage ⚙️

Serving the app 👩‍🍳

$ yarn start

Open http://localhost:3000 to view it in the browser.

Mock Backend Response

To mock backend response, specify REACT_APP_USE_MOCK_DATA environment variable to true.

$ REACT_APP_USE_MOCK_DATA=true yarn start

Then, add/modify the mock response in mock/data folder.

Running the tests 🧑‍🔬

$ yarn test

Building a distribution version 🏗️

$ yarn build

Run Storybook 📖

$ yarn storybook

Open http://localhost:6006 to view it in the browser.