https://github.com/mhjort/huutopussi
2vs2 online card game
https://github.com/mhjort/huutopussi
clojure clojurescript game
Last synced: about 2 months ago
JSON representation
2vs2 online card game
- Host: GitHub
- URL: https://github.com/mhjort/huutopussi
- Owner: mhjort
- Created: 2020-07-05T13:42:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-06T17:11:26.000Z (almost 2 years ago)
- Last Synced: 2024-04-15T09:15:13.607Z (about 1 year ago)
- Topics: clojure, clojurescript, game
- Language: Clojure
- Homepage:
- Size: 2.23 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# huutopussi

Multiplayer (4 players) card game: https://fi.wikipedia.org/wiki/Huutopussi
This repository contains both client and server for running the code.
Note! Project is still in alpha stage!
## Prerequisites
You will need Java and [Leiningen](https://leiningen.org/) 2.9.1 or above installed.
## Easy Setup on MacOS
Run steps 1.-3. only on the first time.
1. Download and install Java from e.g. [AWS Corretto](https://corretto.aws/downloads/latest/amazon-corretto-11-x64-macos-jdk.pkg)
1. Install [Leiningen](https://leiningen.org/)
1. Clone this repository in a terminal
git clone https://github.com/mhjort/huutopussi.git
1. Run the backend in a terminal
cd huutopussi
lein ring server-headless2. Run the frontend in a separate terminal
cd huutopussi/client
lein fig:build## Running
### Development mode (auto reload & REPL)
In development mode assets (images and JS) are served from client and server is only API.
To start a web server (Rest API) for the application (runs in port 3000), run:lein ring server-headless
To start a client. Go to client directory and run:
lein fig:build
Open http://localhost:9500 to play
### Production build
Production build compiles minimal JS file and copies it and other assets (images) to server.
Then the server is built as one standalone uber jar.Create production uberjar:
bin/build
Run it
java -jar target/huutopussi-standalone.jar
Open http://localhost:3000 to play
## License
Copyright © 2020-2021 Markus Hjort
Distributed under the Eclipse Public License version 1.0.