Skip to content

amrwc/gg-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GG Bot

Docker Unit and Integration Tests

Discord bot to play games with.

GG Bot demo

Documentation

Run using Docker

export SPRING_DATASOURCE_URL='jdbc:postgresql://database-container:5432/dbname'
export SPRING_DATASOURCE_USERNAME='spring_user'
export SPRING_DATASOURCE_PASSWORD='SpringUserPassword'

export POSTGRES_URL='jdbc:postgresql://localhost:5432'
export POSTGRES_DB='dbname'
export POSTGRES_USER='postgres'
export POSTGRES_PASSWORD='SuperuserPassword'

./bin/run.py --apply-migrations [--debug]

The application is now listening at http://localhost:8080. If the --debug option has been used, the debugger is listening on port 8000.

Configuration, such as network ports, Docker component names (volumes, network, images, containers), can be adjusted inside ./bin/config.ini.

Clean up

./bin/teardown.py [--cache --db --network --tmp]

Test

Unit tests

./gradlew test

Integration tests

./bin/integration_tests.py