Developing lightweight computation at the DSG edge

README.md 913 Bytes
Newer Older
deepthidevaki's avatar
deepthidevaki committed
1
2
3
4
5
6
7
8

This is a sample application to demonstrate how to build applications that use Antidote as backend database.

* setup - scripts and docker files for running two instances of Antidote and two instances of the jave application
* bookstore - source of the application

### What you need
* An IDE for java development
deepthidevaki's avatar
deepthidevaki committed
9
* [Gradle](https://gradle.org/) build tool
deepthidevaki's avatar
deepthidevaki committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
* [Docker](https://docs.docker.com/engine/installation/)
* [docker-compose](https://docs.docker.com/compose/install/)


### Build Bookstore application
In bookstore/
* ./gradlew build

### Starting antidote nodes
In setup/
* ./start_antidote.sh
* ./stop_antidote.sh

Scripts starts(or stop) two antidote docker containers and set up the inter-dc replication.

### Starting the application
* app1.sh - starts application instance 1 which can connect to antidote instance 1
* app2.sh - starts application instance 2 which can connect to antidote instance 2