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
$ yarn start
Open http://localhost:3000 to view it in the browser.
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.
$ yarn test
$ yarn build
$ yarn storybook
Open http://localhost:6006 to view it in the browser.