https://github.com/sonicoder86/todomvc-svelte
TodoMVC built with Svelte and Store
https://github.com/sonicoder86/todomvc-svelte
store svelte testing todomvc
Last synced: 2 months ago
JSON representation
TodoMVC built with Svelte and Store
- Host: GitHub
- URL: https://github.com/sonicoder86/todomvc-svelte
- Owner: sonicoder86
- License: mit
- Created: 2020-03-01T13:37:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-08T22:45:16.000Z (over 2 years ago)
- Last Synced: 2025-04-01T23:51:57.197Z (3 months ago)
- Topics: store, svelte, testing, todomvc
- Language: JavaScript
- Homepage: https://blacksonic.github.io/todomvc-svelte/
- Size: 2.14 MB
- Stars: 40
- Watchers: 4
- Forks: 5
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# TodoMVC built with Svelte and Store
[](https://travis-ci.com/blacksonic/todomvc-svelte)
[](https://david-dm.org/blacksonic/todomvc-svelte)The well-known TodoMVC built with Svelte and Store in a structured and testable way.

## Concepts and tools covered
- [Components and Props](https://svelte.dev/tutorial/declaring-props)
- [Handling Events](https://svelte.dev/tutorial/component-events)
- [Store](https://svelte.dev/tutorial/writable-stores)
- [Unit Testing](https://github.com/testing-library/svelte-testing-library)
- [E2E Testing](https://www.cypress.io/)## Usage
After installing the dependencies the following NPM scripts become available:
- `start`: starts the application in development mode on [http://localhost:9500](http://localhost:9500)
- `build`: bundles the application for production into the `public` folder
- `test`: runs unit and E2E tests
- `test:unit`: runs unit tests with [Jest](https://jestjs.io/) in the `src` folder suffixed with `*.spec.js`
- `test:e2e`: runs E2E tests with [Cypress](https://www.cypress.io/) in the `tests/e2e` folder suffixed with `*.spec.js`
- `format`: formats the code with [Prettier](https://prettier.io/) within the `src` folder
- `lint`: lint files with [ESLint](https://eslint.org/) based on [Airbnb's styleguide](https://github.com/airbnb/javascript) and the Prettier config## Component architecture

Application is compatible with [Svelte devtools](https://chrome.google.com/webstore/detail/svelte-devtools/ckolcbmkjpjmangdbmnkpjigpkddpogn)
## Series
This implementation is part of a series where the same application was implemented with the same architecture.
- [Vue](https://github.com/blacksonic/todomvc-vue)
- [Vue Composition API](https://github.com/blacksonic/todomvc-vue-composition-api)
- [Angular](https://github.com/blacksonic/todomvc-angular)
- [React](https://github.com/blacksonic/todomvc-react)
- [React Hooks](https://github.com/blacksonic/todomvc-react-hooks)
- [Svelte](https://github.com/blacksonic/todomvc-svelte)