Skip to content
Small java game
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.mvn/wrapper
src/main
.gitignore
Dockerfile
LICENSE
README.md
azure-pipelines.yml
mvnw
mvnw.cmd
pom.xml

README.md

PDB

Gitter

This is a small web application to create a text game for browser. The goal of the game is to create something similar to Ogame, but with your own character and some good rpg elements to it.

How to Help

If you want to help, here's what you can do to contribute to the project :

  • Download and install Java and Maven on your machine
  • Clone or fork the project.
  • Go check the issue with the label help-wanted and start working.

You can always go the gitter and ask question or give feedback if you want :).

What We Need

There is a great need to help with the layout and the aesthetics of the client (see the pdb-frontend project for more information).

There are also a lot of small easy things to do. Come chat with me on Gitter or this chatroom if you have any idea.

Running Database + PDB in Docker

docker run --name pdb-db -p 5432:5432 -e POSTGRES_USER=pdb -e POSTGRES_PASSWORD=password1 postgres
docker build . -t pdb
docker run --name pdb-app  -p 3000:3000 -v $PWD/target/pdb-0.0.3-SNAPSHOT.war:/pdb-data/pdb.war --link pdb-db:postgres pdb

How to Setup the Database

If you didn't use the docker instance, you will need a postgresql10 installation either on your local machine or elsewhere. For Windows, you can follow this installation page and for Linux you can follow this page of instructions.

Once the installation is complete, you need to create a new db and a new user like so :

CREATE DATABASE pdb;
CREATE USER pdb WITH ENCRYPTED PASSWORD 'password1';
GRANT ALL PRIVILEGES ON DATABASE pdb TO pdb;

This will create a user and database to connect to. Those information can be changed in the application.properties file, if you changed any of the provided one :

spring.datasource.url= jdbc:postgresql://localhost:5432/pdb
spring.datasource.username=pdb
spring.datasource.password=password1

The table will be created automatticaly by liquibase at the start of the application, so no need of any intervation.

How to Run the Application

This is really easy, all you have to do is run the correct mvn goal :

mvn spring-boot:run

If everything is setup correctly, the server should start up :).

There is 4 users account included in the seed data testtest, testtest2, testtest3 and testtest4 (all the passsword are testtest).

You can’t perform that action at this time.