Git Product home page Git Product logo

battleship's Introduction

Battleship

This is a REST API based Battleship game as described by the specifications of Lunatech.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Dependencies

Java 8
Maven
A rest client for testing, (e.g.Postman)

Installing

A step by step series of examples that tell you how to get a development env running

Unzip the file

unzip battlefield.zip
cd battlefield

Build the project

mvn clean install

Running the tests

Tests can simply run by maven

mvn test

Integration tests

Tests named as *ITest.java are end-to-end integration tests. In these tests, usually two game instances are run at ports 7000 and 7001. Tests continue by two users firing at each other. Tests needs further improvement to support JWT-based Authentication and Authorization feature. For the sake of simplicity and timing, security checks are switched off while running these automated tests.

Built With

  • Javalin - A lightweight web framework to serve User and Protocol API's
  • Maven - Dependency Management
  • Java Jwt - Used for JWT-based authentication and authorization
  • Jersey-Client - JAX-RS Client to consume opponent's Protocol API

Main Components

BattleshipGame.java configures and initializes the services and api's

battleship's People

Contributors

toztemel avatar

Watchers

 avatar  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.