Consider using Apache Cordova. This tool lets you build apps with web technologies like HTML, CSS, and JavaScript, which can then be adapted to run on different devices, including e-readers.
For a detailed explanation on
how to build software from scratch for these devices, you might want to start by exploring the Kindle Developer's Kit, which provides tools and documentation for creating active content.