Skip to content

kettanaito/msw-demo-app

 
 

Repository files navigation

MSW demo

This is a simple app to demonstrate MSW library.

It was created as part of my presentation on Frontkon conference:

Usage

Set .env.local file (see .env.example for reference) and then.

npm install
npm run dev

Demo app

The app has a single view with 2 pringles cans, that loads the initial data using HTTP GET request and while user votes using buttons, it propagates those changes using WebSockets. You can tweak the MSW handlers in ./src/mocks/browser.js to play with the data.

About

MSW demo app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.5%
  • CSS 45.0%
  • HTML 2.5%