/musicshop

Primary LanguageJavaScript

Music Shop

Stack

Folders

musicshop/
  public/
    index.html
    favicon.ico
  scripts/
    build.js
    start.js
    test.js
  src/
    api/
      captureTransaction.js
      index.js
      recipients.js
      splitRules.js
      transaction.js
    components/
      Button.js
      Cart.js
      FullProduct.js
      Header.js
      Modal.js
      Product.js
      ProductDetails.js
      ProductList.js
    images/
      album-photo.jpg
    styles/
      base/
        Base.scss
        Main.scss
      components/
        Button.scss
        Cart.scss
        Header.scss
        Modal.scss      
        Product.scss      
        ProductDetails.scss      
        ProductList.scss
      App.scss
    App.js
    Api.js
    index.html
    index.js
    products.json
    registerServiceWorker.js
  README.md
  .env.example
  package-lock.json
  package.json
  yarn-lock

Run the project locally

1 - Prepare the environment: install yarn

$  npm install -g yarn

2 - Clone the project and install the dependencies:

$ git clone https://github.com/alalbuquerque/musicshop.git
$ cd musicshop/
$ cp .env.example .env # fill REACT_APP_API_KEY and REACT_APP_ENC_KEY with yours respectives keys
$ yarn install

3 - Run static server and livereload: http://localhost:3000

$ yarn start

Automatic Tasks

  • $ yarn start Watch the files to build and start a static server.
  • $ yarn build Compile, concat and minify all files.
  • $ yarn deploy Deploy for gh-pages.