Ions Tutorial
This tutorial shows how to write applications that run entirely inside Datomic Cloud without any additional servers.
With ions, you can build:
- Web services accessed via AWS API Gateway for use by other applications or single page web apps
- Data-driven applications that are invoked via AWS lambda
In this tutorial, you will deploy a simple inventory application with functions to add and query inventory, and then expose this application via both Lambda and AWS API Gateway. Along the way, you will learn how to develop, push, deploy and use your functions via:
- API gateway HTTP direct
- AWS lambda
- Datomic attribute and entity predicates, query functions, and transaction functions
The Day of Datomic Cloud and Datomic ions videos discuss use of an Ion, with the code on Github. Some parts of these videos reference workflows or technologies that may not apply in Datomic 884-9095 and later.
Tutorial Prerequisites
Before this tutorial, perform the following:
- Install Datomic Cloud Version 884-9095 or later. Follow the instructions to create a new Datomic Cloud system, or to upgrade an existing system
- Run a compute group with parameter Ions="yes"
- Know the app name of your system
- Read the ions overview
- Know how to launch and use a Clojure CLI REPL
- Know how to work with a git repository
- Run in an environment with proper AWS access keys
- Have AWS administrator permissions
You are now ready to setup your first ion.