Based on: https://github.com/kpsimoulis/thegamesdb
- Docker for OSX or Docker for Windows or Play with Docker
- IntelliJ Community Edition
- Java Development Kit
To run the application first create a file named .env in the root directory, which will hold the database credentials and URL:
DB_URL=jdbc:mysql://thegamesdb-database:3306/thegamesdb
DB_USER=root
DB_PASS=password
Then run docker-compose to start the containers:
docker-compose up
You can run the following commands starting from the root directory of the project, to rebuild the target folder first:
cd thegamesdb-webserver/app
mvn clean
mvn install
cd ../..
docker-compose up
You can then visit http://localhost:8080/TheGamesDb to see the app in action.
If running from Play with Docker, create the .env file in the same way and use the existing target file to simply run docker-compose straight away.