Skip to content

Latest commit

 

History

History
64 lines (33 loc) · 1.63 KB

README.md

File metadata and controls

64 lines (33 loc) · 1.63 KB

Admin

This application is taking care of user management and deck building.

See Matag: The Game wiki

Automated Build

Java CI with Maven

Requisites

Read Requisites

The application connects to a postgresql database. You can install one locally and then run the postgres-schema.sql

Development

The application is written using:

The use of an IDE like IntelliJ will help much during development. (Community edition is available).

Build

Build java:

mvn install

Build js:

yarn install
yarn watch

(To have more helps with imports click on the js folder and mark it as resource root)

Tests

Run Tests locally

You can run all tests with:

mvn test

Tests mock database interaction so you should be able to code without it.

Run the application locally

Startup the app as spring boot

# from intellij or with
mvn spring-boot:run -DDB_URL=<db_url> -DDB_NAME=<db_name> -DDB_USERNAME=<db_username> -DDB_PASSWORD=<db_password> -Dserver.port=8082 -Dmatag.admin.url=http://localhost:8082 -Dmatag.game.url=http://localhost:8080 -Dmatag.admin.password=password

(The values above depend on your configuration.)