Skip to content

Simple react/typescript todolist app with mobx-mvvm architecture, tailwind css and cypress. Workspace uses parcel build tool.

License

Notifications You must be signed in to change notification settings

RostislavBerezhnoy/mobx-mvvm-todolist-with-cypress-and-parcel

Repository files navigation

Simple react/typescript todolist app with mobx-mvvm architecture, tailwind css and cypress tests

React MVVM architecture is powered by MobX. Workspace uses Parcel build tool.

The principles of MVVM

  • The ViewModel(VM) should not depend on React and should have no idea what the view looks like.
  • With the correct implementation of MVVM architecture, the View should be decoupled from the underlying data and business logic.
  • The pure VM is much easier to test than react components with state logic.
  • VMs should be light & cheap and easily re-implemented with the same interface the view uses.

Backend

In order to run the fake backend please install the JSON Server via

yarn global add json-server

Then,

yarn run start-server

And finally,

yarn run start

Cypress

This repo contains the tests written in Cypress.

Type Location
api cypress/tests/api
ui cypress/tests/ui

Run

yarn run cypress:open

to launch the cypress test runner in the interactive watch mode.

App Screenshot

App Screenshot

Tests Screenshots

App Screenshot

App Screenshot

Tech Stack

React, Typescript, Mobx, MVVM, Tailwind CSS, Cypress, Parcel

License

MIT

About

Simple react/typescript todolist app with mobx-mvvm architecture, tailwind css and cypress. Workspace uses parcel build tool.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published