Giter VIP home page Giter VIP logo

mtg's Introduction

Mtg

Early access implementation of an MTG game accessible at: https://aa-mtg.herokuapp.com (Most probably there will be nobody online, but you can try it out playing against yourself by opening to tabs at the address above).

For any questions please contact: [email protected]

Development

The application is written using:

  • Java (Spring)
  • Javascript (React + Redux)

Tests info

There are two types of tests application and integration.

  • integration tests are smaller tests that test small bits of Java code
  • application tests are bigger tests that test entire features end to end

Run application tests

Application tests span the entire SpringBootApplication and open browser to hit the server.

They run against HtmlUnit on Travis but can be run against ChromeDriver locally.

To run them against ChromeDriver change the default JUnit IntelliJ configuration adding the following in the VM arguments:

-Dwebdriver.chrome.driver=/your/chromedriver/installation/folder

If you want to use a chromedriver version with some extensions (e.g. redux tools)

-D"webdriver.chrome.userDataDir=/tmp/Chrome/Mtg/"

Then put a breakpoint on some test and while is executing open a new tab and install everything you want. Next time the test will rerun will use that same profile.

Requisites

  • Install JDK 1.8
  • Install maven
  • Install yarn

Build & Run

Build on Travis

Build Status

Build locally

Build js:

yarn install
yarn watch

Startup the app as spring boot

# from intellij or with
mvn spring-boot:run

It is possible to run with test profile in order to start custom decks rather than random (see InitTestService)

Run tests:

yarn test
mvn test

Deployment

Application is deployed at: https://aa-mtg.herokuapp.com/

The deploy happens automatically after each commit on master if the build passed.

mtg's People

Contributors

antonioalonzi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.