A possible backend implementation for the Budget apps on Android & iOS
Find a file
William Brawner c97c9b2c67 Implement /api/transactions/sum
This endpoint is only included for legacy support. Ideally, the client would just pull the list of transactions and calculate the sum locally for faster results.
2023-07-17 21:25:38 -06:00
.github/workflows Add GitHub Action workflow to publish docker image 2021-02-25 17:28:51 -07:00
api Implement /api/transactions/sum 2023-07-17 21:25:38 -06:00
gradle/wrapper Bump gradle wrapper version 2023-03-02 20:51:13 -07:00
.gitignore Remove swagger 2021-03-31 20:21:16 -07:00
build.gradle Upgrade to Spring Boot 3 2023-03-04 09:03:36 -07:00
captain-definition Configure caprover deployments 2019-05-22 21:54:15 -07:00
docker-compose.yml Upgrade to Spring Boot 3 2023-03-04 09:03:36 -07:00
Dockerfile Switch to OpenJ9 for container 2021-06-15 08:07:09 -06:00
gradlew Migrate from JDK 8 -> 11 and use Gradle instead of Maven 2020-02-10 17:57:53 -07:00
gradlew.bat Migrate from JDK 8 -> 11 and use Gradle instead of Maven 2020-02-10 17:57:53 -07:00
LICENSE Add license 2019-10-03 15:24:43 -07:00
README.md Add README 2020-12-27 14:28:13 -07:00
settings.gradle Move source into api module 2020-05-31 13:23:28 -07:00

Twigs Server

This is the backend application that powers the Android, iOS, and web applications for Twigs, a personal finance/budgeting app.

Prerequisites

  • JDK 14 or newer
  • MySQL 5.7 or newer
  • (optional) Docker

Running

Prior to running the app, make sure you have a MySQL server running, with a database and user ready to go. To avoid the hassle of figuring out how to get it installed locally, using Docker is recommended, and a sample docker-compose.yml file is included in the root of the repository. If you already have a MySQL server running, you can run the app from the command line with gradle:

./gradlew bootRun

By default, twigs will try to connect to the budget database on localhost, using budget as the user and password. To change these values, you can modify the api/src/main/resources/application.properties file (but don't commit it!), or better yet, set the appropriate environment variables using the uppercase names and replacing the .s with _s. For example, to change the spring.datasource.username property (the database username), you could set the value in an environment variable called SPRING_DATASOURCE_USERNAME.

Building

Building the app is also handled with gradle:

./gradlew bootJar