TrifectaIII / MTG-Card-Reader-Web

MTG-Card-Reader 2.0, built as a webpage.
https://mtg-cr.tk
47 stars 4 forks source link

How to run this project? #21

Open freeall opened 1 year ago

freeall commented 1 year ago

This project looks really amazing and the demo site works super well. When I wanted to run it myself I thought it was a bit hard to know where to get started. Do you have any documentation on how to run this?

jawursh commented 11 months ago

@freeall I made some progress getting it to run, but there's a lot of undocumented steps & I couldn't get card detection to work.

I'm on a m1 mac so your setup might be a little different:

setup

download allPrintings from mtg json & place in resources/AllPrintings.json

setup poetry environment for dependencies

install poetry with pipx

pipx install poetry

upgrade numpy(optional ... I had to run this because I'm on m1 mac & ran into dependency issues)

poetry add numpy@latest

install dependencies with poetry

poetry install

run the app

start the poetry shell

poetry shell

run the bottle app to start the server

python bottle_app.py