ErgoPay Tutorial: Backend Integration
What we’ll do in this tutorial
This tutorial focuses on implementing the backend server-side for ErgoPay, building and preparing transactions. We’ll use Spring Boot to implement a simple ErgoPay REST API. Spring is JVM-based, and ergo-appkit is also JVM-based. You can use any other language/framework, but this tutorial uses Java for simplicity. The UI side is not covered here, but the code for the ErgoPay showcase dApp is open-sourced.
Starting your Spring Boot project
You can use any IDE. Install a Java Development Kit (JDK) if you don't have one. Use OpenJDK on Linux or Adoptium on Windows. Generate a fresh Spring Boot project with the Spring Initializr. Add the “Spring web” dependency. Download, extract, and open the project in your IDE.
Start your application with Gradle: