Skip to content

chrisihoby-dev/players-api

Repository files navigation

PLAYERS API

Features

Just a Simple CRUD for players

Tech

it uses the following frameworks,tools and libraries:

Installation

it requires Java version 21, Docker and Docker Compose to run.

Build

You can run the following script to build the application:

cd build-script
./build-app.sh

It will build, test and generate jar and docker image for the application

Run jar (build and docker running required)

you can run the following script to launch the generated jar. You can specify the database url endpoint (DB_ENDPOINT) and the app port (PORT) variables in the app-jar-launch.sh file. If not specified the database url endpoint would be 'http://localhost:8000' and the port 8080

cd launch-script
./app-jar-launch.sh

Run containers (build and docker running required)

you can run the following script to containers. You can specify the database url endpoint (DB_ENDPOINT) and the app port (PORT) variables in docker-compose.yml file. If not specified the database url endpoint would be 'http://localhost:8000' and the port 8081

cd launch-script
./container-launch.sh

you can stop containers by running the following command

cd launch-script
./container-stop.sh

the variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_SESSION_TOKEN can also be specified in the launch script or in the docker compose file if necessary

API documentation

When the application is running, the api documentation will be available under /swagger-ui/index.html

About

player api showcase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors