A small and fully spec-compliant TodoMVC implementation in NX.
Switch branches/tags
Nothing to show
Clone or download
Latest commit ab3f5d0 Feb 10, 2017
Permalink
Failed to load latest commit information.
components update for beta-2.0.0 Feb 10, 2017
static update for beta-2.0.0 Feb 10, 2017
.gitignore Initial commit Jan 9, 2017
LICENSE Initial commit Jan 9, 2017
index.html update for beta-2.0.0 Feb 10, 2017
package.json initial commit Jan 9, 2017
readme.md feat(readMe): add live demo Jan 9, 2017
server.js initial commit Jan 9, 2017

readme.md

TodoMVC example

Live demo

This is a fully spec compliant TodoMVC example - written in NX.

It is built without a bundler, using old school script and link tags only. If you are interested in a larger bundled app, check out the Intro app or the Hacker News clone.

Usage

Clone the repo and run npm i and npm start. The npm start command bundles the source and starts a local server. The demo is exposed on localhost:3000.

Project structure

The project is structured in the following way.

  • The static folder includes the static assets of the app. These include the standard TodoMVC scripts and styles and the NX framework.
  • index.html contains the whole view of the app. It imports all of the static assets and components with script and link tags.
  • The components folder includes the logic of the components.
  • server.js is only used for local testing, as the page is hosted on Github Pages. It serves as a simple server example for single page applications.