Hello there! 🚀 Welcome to the Galactic Odds Calculator application. This guide will walk you through getting the application up and running in no time! 🌌
Our application comprises three main components:
- Backend - The core logic for calculating odds.
- Frontend - A user-friendly interface for easy interaction.
- CLI - A command-line interface for direct access through the terminal.
Before starting, ensure you have the following installed:
- Java (JDK 11 or newer) ☕
- Node.js and npm (for the frontend) 📦
- Your favorite IDE or text editor 📝
To start the backend server:
- Navigate to the backend directory:
cd backend ./gradlew bootRun
On Windows, use
gradlew.bat bootRun
To start the backend server:
- Navigate to the backend directory:
cd frontend
- Install the dependencies:
npm install
- Start the application:
npm start
To start the backend server:
- Navigate to the root directory:
- Run give-me-the-odds script On Unix-like Systems (Linux, macOS): Ensure the script is executable:
./give-me-the-odds.sh /absolute-path/to/empire.json /absolute-path/to/config.json
And run the script :
./give-me-the-odds.sh /absolute-path/to/empire.json /absolute-path/to/config.json
On Windows:
give-me-the-odds.bat \absolute-path\to\empire.json \absolute-path\to\config.json
P.S: Always build on root project since cli has backend as a dependency. To fix spotless style violations, run "./gradlew spotlessApply"