Skip to content

A very simple todo app, with styles from http://todomvc.com. Created as a tool for demonstration of deployment capabilities, specifically with Kubernetes.

License

Notifications You must be signed in to change notification settings

cacois/simple-todo

Repository files navigation

simple-todo

A very simple todo app, with styles from todomvc.com. Created as a tool for demonstration of deployment capabilities, specifically with Kubernetes.

Design

simple-todo is a very basic Express app, with a Mysql backend and some basic jquery to facilitate the single-page frontend. The UI allows you to:

  • Enter a new todo
  • Mark a todo as complete
  • Delete a todo

If connected to a mysql database, the app will load todos on page load. The app will sync todos with the mysql database each time you change the data in the UI.

simple-todo has been designed specifically to work seamlessly without a database connection. The user will notice errors in the browser console, marking attempts to sync with the database. Without a database connection, refreshing the page will also erase all todos.

To Run Locally

Install dependencies:

$ npm i

Start the mysql database (and an adminer instance):

$ docker-compose up -d

Then start the app:

$ npm start

And access at http://localhost:3000

Using Docker

Build the app image:

$ docker build -t simple-todo .

Then run:

$ docker run -d -p 3000:3000 --name simple-todo simple-todo

And access at http://localhost:3000

About

A very simple todo app, with styles from http://todomvc.com. Created as a tool for demonstration of deployment capabilities, specifically with Kubernetes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published