GithubHelp home page GithubHelp logo

khtdr / svelte-redux-shopping-cart Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 2.0 1.87 MB

Example Shopping Cart App using Svelte, Redux, and Webpack

License: MIT License

HTML 28.36% JavaScript 71.64%
svelte webpack redux redux-devtools-extension hot-reload cypress-io travis-ci

svelte-redux-shopping-cart's Introduction

Current Svelte is @v3, but this example repo uses Svelte@v2

You, yes you, should fork this repo, upgrade the Svelte dependendies to v3, and submit a PR!



Greenkeeper badge Build Status Dependency Status devDependency Status FOSSA Status

A port of the Redux Shopping Cart example, from React to Svelte. The bindings between Svelte and Redux are provided by the svelte-redux package. The bundle is built with Webpack and is configured with hot-reloading enabled in development.


Getting Started

  1. Clone the repo
  2. Install dependencies
  3. Start the server
git clone [email protected]:khtdr/svelte-redux-shopping-cart.git
cd ./svelte-redux-shopping-cart && yarn
yarn start

Or with degit

degit khtdr/svelte-redux-shopping-cart your-project
cd ./your-project && yarn
yarn start

Open: http://localhost:8080

โ“ If port 8080 is taken, find and change the port number in package.json:

  "start": "http-server public -p 8080 -o"

If you want to run tests on a different port, fix accordingly:

grep -ir 8080 * | grep -v node_modules

Development and Testing

To enable hot-reloading, stop the server and run:

yarn run dev

Or to enable hot-reloading and open the Cypress test suite:

yarn run test

Open your browser to http://localhost:8080. Edit source files and the page will update.

Source Code Structure

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.