halogenandtoast / ArkhamHorror

A rules-compliant browser based version of Arkham Horror: The Card Game.
https://arkhamhorror.app
60 stars 15 forks source link
arkham-horror arkham-horror-lcg backend game haskell postgresql sockets vuejs

Arkham Horror LCG

Screenshot

The goal of this project is to implement a web version of Arkham Horror with as many of the rules implemented as possible.

Warning

This is very much a work in progress. Things may break at any time, but if they do, please file a bug.

Features

Finished Content

Player Cards

Campaigns

Side Stories

I just want to try this out on my computer

You will need to install Docker.

Afterwards you can run:

docker compose up

And launch http://localhost:3000

If you pull updates in the future make sure to run

docker compose down
docker compose build
docker compose up

Local dev

Dependencies

Local Setup

Running via Docker

The image is setup to use an external database passed via the DATABASE_URL environment variable. Follow the steps below to setup the database and then run the following commands

docker build -t arkham .
docker run -t -i -e PORT=3000 -e DATABASE_URL="postgres://docker:docker@host.docker.internal:5432/arkham-horror-backend" -p 3000:3000 arkham

Backend

Run stack setup in the backend directory, then run stack build --fast (note: this will still take a long time)

Frontend

Run npm install in the frontend directory

Database

Create the local database:

createdb arkham-horror-backend
cd migrations
sqitch deploy db:pg:arkham-horror-backend

If you do not have sqitch you can cat migrations/deploy/* to see the create table statements and run them manually, you will want to specifically run the users and arkham_games create table statements first.

Running the server

Copyright Disclaimer

The Card Game, both literal and graphical, is copyrighted by Fantasy Flight Games. This application and the corresponding website is not produced, endorsed, supported, or affiliated with Fantasy Flight Games.