- Clone this project
git clone https://github.com/webxoss/webxoss-core.git --recurse-submodules
- Init / Update submodule
cd webxoss-core
git submodule update --init --recursive
- Download copyrighted images
cd webxoss-client
curl https://webxoss.com/images.tar | tar xv
cd -
Note:
- The card images are copyrighted by Takara Tomy. NO BUSINESS USE.
- If it's slow, you can replace
webxoss.comwithcloudflare.webxoss.com,incapsula.webxoss.comorhongkong.webxoss.com:8080to use proxy. - Card images are compressed. Use webxoss-fetch to get raw images.
- Install dependencies
npm install
WEBXOSS can be runned in 2 modes: node or browser.
Use nodejs to create a WEBXOSS server over network.
# listen to 127.0.0.1:80
node test.js
Then open 127.0.0.1. That's it.
# or specify a port
node test.js port=8080
WEBXOSS server can be runned in a browser tab, typically for easier debugging.
In this case, nodejs isn't needed. Just serve this project using nginx, apache or anything else.
Then, open 127.0.0.1 (map to webxoss-core folder). The browser tab you just opened is a real WEBXOSS server. You can open console to see what's inside it.
Note:
- The "server" and "client" tabs use
postMessageto simulate network communications. So you can only play with yourself in a browser. - See this test guide for more test tricks.