This is a ToDo List Application in Amber Smalltalk. It was created by Rodrigo Bistolfi and others for Amber version 0.9.1. It has been updated for Amber version 0.14.1 by Hannes Hirzel.
This project is an Amber Smalltalk example.
- A web browser with reasonably good support for HTML5 canvas.
- git, on Windows Git for Windows
- nodejs. This will give you the node package manager
npmas well. - A global install of the
amber-clinpm package - A global install of the
bowerclient side package manager in order to install the dependencies - A global install of the
grunt-clitask runner which is used as the command line build system
The amber, bower and grunt-cli packages can be installed with the following command:
npm install --global amber-cli bower grunt-cli
or as short form:
npm i -g amber-cli bower grunt-cli
Reference: http://docs.amber-lang.net/js-glossary.html
Bring the project alive (for example after git clone) with:
npm install
bower install
grunt develDeveloping the project (after brought alive):
Start server with amber serve and go to http://localhost:4000/ in your browser and follow the instructions
npm installinstalls components into node_modules; used for recompiling withgrunton the command line.boweris used to install the web components of Amberamberis used to run a small local web server
The application has three classes
- ToDo (for a ToDo item)
- ToDoList (the widget containing all ToDo items)
- ToDoStorage (a wrapper around
localstorage, another persistency solution might be used later. Every change in the ToDo List is stored immediately)
The ToDo list items are stored in the localStorage of your browser. When you reload the ToDo List web page they will be reloaded.
To check manually what is stored execute
localStorage getItem: 'TodoList'
in an Amber workspace.
To completely remove what is there execute
localStorage removeItem: 'TodoList'