Coder Social home page Coder Social logo

chuset21 / splendor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 617.54 MB

A group project completed in McGill consisting of an online board game platform where users can login and play Splendor with their friends.

Java 99.50% CSS 0.46% PowerShell 0.02% Shell 0.02%

splendor's Introduction

COMP 361 Project

See also my video instuctions in the screencasts section on MyCourses.

The Rules

  • Feel free to edit/replace this file.
  • Do not delete or rename the reports, client, server or docs directories.
    See Static Content
  • Don't clutter your repo, update your .gitignore file, depending on your client language / technology.
    • Don't commit binaries. (Images, jar files, class files, etc...)
    • Don't commit buffer files. (Vim buffer files, IDE meta files etc...)
  • Place your documentation in docs on master.
  • Commit frequently, commit fine grained.
  • Use branches
  • Don't push on master!
    • Create a new branch for your feature.
    • Work until stable / tested.
    • Merge / rebase your temporary branch back to master.
    • Delete your temporary branch.

Static content

  • .gitignore: Preliminary git exclusion instructions. Visit Toptal's generator to update.
  • reports: Base directory for automatic report collection. Your weekly reports go here. Must be uploaded every monday noon to master and follow correct date string YYYY-MM-DD.md. Use template for your own reports. Do not resubmit same report / copy paste.
  • docs: source directory for your enabled GitHub Pages. ( Update number in link). Configure IDE to generate API docs into this directory or build your own webpage (optional).
  • client: Place your client sources into this directory. Do not use a separate repository for your work.
  • server: Place your Spring Boot Game Server sources in this directory. Do not use a separate repository for your work.

Useful Links

Code Style and Tools

Requirements

Be careful not to confuse Lobby Service and Board Game Platform.

Authors

How to run

Native deployment

Run the services in the following order:

Docker Compose

The service interplay configuration for this Splendor implementation uses Docker-Compose.

  • Docker is a virtualization technology that allows a convenient deployment (installation) of services, independent of the host OS. Docker deploys individual services (the modules listed above) as containers.
  • The Docker-Compose configuration of this repository orchestrates module containers (correct startup sequence, network wiring).

Note: You can use this docker-compose configuration on any system, no matter if a personal laptop or a headless server.

The following files are used for deployment:

Prerequisites

Docker-Compose

Depending on your host-os, install docker-compose with one of the links below:

Code

  • Clone this repository:
    git clone https://github.com/COMP361/f2022-hexanome-14

  • Recursively pull, and re-attach all sub repositories:

    • Mac / Linux:
      ./updatesubmodules.sh
    • Windows:
      .\updatesubmodules.ps1

Java and maven

Install java version 19 and maven to run the client.
Here are some good instructions by Baeldung on how to install maven: https://www.baeldung.com/install-maven-on-windows-linux-mac
This is also necessary if the server is being deployed natively.

Deployment

  • If you're on a Mac with M1 chip, set these environment variables:
export DOCKER_BUILDKIT=0
export COMPOSE_DOCKER_CLI_BUILD=0
  • Power up the platform:
    docker-compose up
    (use docker-compose up --build to force rebuild)

  • Test the platform:

    • Run the client with the these instructions
    • In the running client login with a user, such as maex, linus, khabiir or marianick, with the password: abc123_ABC123
    • Create a session
    • Launch another instance of the client
    • Login as a different user to client 1
    • On client 2, join the session created by client 1
    • Launch the game on client 1
    • Join the game on client 2
    • Play! on both clients.

splendor's People

Contributors

chuset21 avatar kailaidescope avatar krishidub avatar matanatlas avatar eamonn-lye avatar fjborrell avatar m5c avatar matlas57 avatar

Watchers

 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.