Massively Multiplayer Online Puzzle
-
Install Redis
brew install redis
-
Install Node.js
brew install node
-
Clone a project repository with all it's submodules:
git clone --recursive git@github.com:borbit/muchmala.git
-
Install all the dependencies:
./install.sh
Puzzles generation is built on top of node-canvas which requires Cairo. So, if there is any problems with installing node-canvas look for system-specific installation on Wiki.
-
Run Muchmala
If you have Foreman installed:
foreman start
Otherwise:
muchmala-api/bin/muchmala-api muchmala-static/bin/muchmala-static muchmala-io/bin/muchmala-io
-
Generate first puzzle:
cd muchmala-cli ./bin/muchmala-cli create path/to/image.jpg -o ../muchmala-static/public ./bin/muchmala-cli covers -o ../muchmala-static/public/covers ./bin/muchmala-cli frame -o ../muchmala-static/public/frames
-
Add this to your
/etc/hosts
:10.0.6.2 muchmala.dev api.muchmala.dev static.muchmala.dev io.muchmala.dev
-
Install custom fork of ansible
[sudo] pip install https://github.com/laggyluke/ansible/archive/roles_combine_vars.zip
-
Get the Vagrant VM up and running
vagrant up
-
Go to the ansible directory and run provisioning for vagrant
cd ansible ./provision.sh vagrant
-
SSH inside the Vagrant VM
cd .. vagrant ssh
-
Once inside the VM, go to mounted project dir and run Muchmala
cd /opt/muchmala foreman start
-
Generate first puzzle:
cd muchmala-cli ./bin/muchmala-cli create path/to/image.jpg -o ../muchmala-static/public ./bin/muchmala-cli covers -o ../muchmala-static/public/covers ./bin/muchmala-cli frame -o ../muchmala-static/public/frames
-
Open http://muchmala.dev
I will be really greateful for any contribution in:
- Design and usability improvements
- Mobile and tablets support
- Performance optimizations
- Game design
- Bug fixes
Muchmala may be freely distributed under the MIT license.
Copyright (c) 2013 Serge Borbit <serge.borbit@gmail.com>