A simple, user-friendly web application to manage your finances efficiently.
Ensure the following are installed on your system:
- PostgreSQL: This application uses PostgreSQL as its database.
- Git: For cloning the repository.
- Maven: For building the project.
-
Clone the repository:
git clone https://github.com/hoholms/online-wallet.git cd online-wallet
-
Set up the configuration:
Configure the application.yml file by setting the necessary environment variables or replacing them with actual values:
# HOSTNAME hostname: ${HOSTNAME} # DATABASE CONNECTION spring: datasource: url: jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME} username: ${DB_USER} password: ${DB_PASSWORD} driverClassName: org.postgresql.Driver # CSRF freemarker: expose-request-attributes: true # HIBERNATE jpa: generate-ddl: false show-sql: false hibernate: ddl-auto: validate flyway: enabled: true # SPRING SESSION JDBC session: jdbc: initialize-schema: always table-name: SPRING_SESSION # SMTP MAIL mail: host: ${MAIL_HOST} username: ${MAIL_USERNAME} password: ${MAIL_PASSWORD} port: ${MAIL_PORT} protocol: smtps mail: debug: false
-
Build the application:
mvn clean package
-
Run the application:
Execute the following script in the project root folder:
#!/usr/bin/env bash ver=$(mvn help:evaluate -Dexpression=project.version | grep -e '^[^\[]') cd target java -jar online-wallet-"${ver}".jar
The application.yml
file requires configuration to connect to your database and other services. You can set these
values using environment variables or directly within the file.
-
Database Configuration:
DB_HOST
: Database hostDB_PORT
: Database portDB_NAME
: Database nameDB_USER
: Database usernameDB_PASSWORD
: Database password
-
Mail Configuration:
MAIL_HOST
: SMTP mail hostMAIL_USERNAME
: Mail usernameMAIL_PASSWORD
: Mail passwordMAIL_PORT
: Mail port
To run Online Wallet
using Docker, follow these steps:
-
Build the Docker image:
mvn clean package jib:dockerBuild
-
Set up docker-compose.yml:
Configure the
docker-compose.yml
file similarly toapplication.yml
. -
Run Docker Compose:
docker compose -f docker-compose.yml -p online-wallet up -d
This README provides a comprehensive guide to setting up and running the Online Wallet application. If you encounter any issues or have questions, please refer to the repository's issues section for support.