It's time to revive ancient game of Ur. This repo acts as a simple way to integrate Mur components and deploy it on your local machine.
You need the following installed:
- π go
- direnv (for *nix only)
- π python3
- pip & pipenv
- psql (download here) (if under Windows, make sure psql.exe is in PATH)
git submodule update --recursive --init
# Setup the envars if you don't have direnv installed
source .envrc
# Install the dependencies
pipenv install
# Open the python virtual environment
pipenv shell
# Start a few murkers (an instance is started on each port).
python3 job/main.py murker deploy -ports 9000 9001 -murabi-port 8080
# Check for their existence.
sudo lsof -i -P -n | grep LISTEN
# You can kill the murkers with.
python3 job/main.py murker destroy
python3 job/main.py db deploy
# If you wish to destroy it
python3 job/main.py db destroy
# Start a murabi with
python3 job/main.py murabi deploy -p 8080
# You can kill with fire (joke).
python3 job/main.py murabi destroy
git submodule update --recursive --init
Rem Setup the envars
env.bat
Rem Install the dependencies
py -m pipenv install
Rem Open the python virtual environment
py -m pipenv shell
Rem Start a few murkers (an instance is started on each port).
py job/main.py murker deploy -ports 9000 9001 -murabi-port 8080
Rem Check for their existence.
netstat -ano
Rem Kill the murkers.
py job/main.py murker destroy
py job/main.py db deploy
Rem If you wish to destroy it
py job/main.py db destroy
Rem Start a murabi with
py job/main.py murabi deploy -p 8080
Rem You can kill with fire (joke).
py job/main.py murabi destroy
Go to code/muir/play.html
and open it on two different pages in your browser.