Kotlin + Ktor backend. One‑shot instructions for Linux, macOS, and Windows.
- Java 21 or newer
- Git
- (Gradle not required; we use the wrapper)
sudo apt update && sudo apt install -y openjdk-21-jdk && java -version
brew install openjdk &&
sudo ln -sfn "$(brew --prefix openjdk)"/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk &&
echo 'export PATH="$(brew --prefix openjdk)/bin:$PATH"' >> ~/.zshrc &&
source ~/.zshrc &&
java -version
winget install --id EclipseAdoptium.Temurin.21.JDK -e
java -version
git clone https://github.com/am-p/backendClub.git cd backendClub
./gradlew run
gradlew.bat run
curl http://localhost:8080/health
curl -X POST http://localhost:8080/login -H "Content-Type: application/json" -d "{"username":"Ariel","password":"secret"}"
./gradlew installDist
gradlew.bat installDist
app/build/install/app/bin/app
app\build\install\app\bin\app.bat
- If macOS can’t find
java
, reopen the terminal orsource ~/.zshrc
. - If Windows says “java not found,” open a new terminal after installing the JDK.
- Default port is 8080; change it in
Application.kt
if needed.