Point your browsers to our production instance at ryyppy.net.
Ryyppy.net is a web application which helps you keep track of your consummation of alcoholic beverages. You can also bring your friends along. All you need is an HTML5-compliant browser to see your current state of drunkenness.
On a technical level ryyppy.net consists of a backend written in Java and an HTML5 frontend. Backend does all the calculations, user management etc. and provides these via REST web service for frontend to consume.
Requirements:
- Java 21 to run the application
- Maven 3 to build the application
- Docker to run the database server
- Start application
mvn spring-boot:run(this automatically starts the PostgreSQL database via Docker Compose) - Open browser at
localhost:8080 - Make changes to resources or compile Java code. Browser should automatically refresh with changes.
To enable Google login, set the Google OAuth2 credentials as environment variables:
PowerShell:
$env:GOOGLE_CLIENT_ID="your-google-client-id.apps.googleusercontent.com"
$env:GOOGLE_CLIENT_SECRET="your-google-client-secret"
mvn spring-boot:runCommand Prompt:
set GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
set GOOGLE_CLIENT_SECRET=your-google-client-secret
mvn spring-boot:runLinux/Mac:
export GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
export GOOGLE_CLIENT_SECRET=your-google-client-secret
mvn spring-boot:runThe Google login button will automatically appear on the login page when valid credentials are configured. To disable Google login, simply unset these environment variables or set them to placeholder values.
- Update version number in pom.xml
- Make a git TAG with the version number
- Run
mvn installto build the application .war file
Set configuration using environment variables:
- SPRING_DATASOURCE_URL - JDBC Url to Postgresql database
- SPRING_DATASOURCE_USERNAME - Database username
- SPRING_DATASOURCE_PASSWORD - Database password
- GOOGLE_CLIENT_ID - (Optional) Google OAuth2 client ID to enable Google login
- GOOGLE_CLIENT_SECRET - (Optional) Google OAuth2 client secret to enable Google login
- Copy
ryyppynet-<version>.warto server - Run application
java -jar ryyppynet-<version>.war
