1
0
Fork 0
webxoss-fixed/README.md

70 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2017-01-09 09:06:00 +01:00
# WEBXOSS
## Install
1. Clone this project
2017-08-29 18:17:03 +02:00
```
git clone https://github.com/webxoss/webxoss-core.git --recurse-submodules
```
2017-01-09 09:06:00 +01:00
2. Init / Update submodule
```
2017-08-29 18:17:03 +02:00
cd webxoss-core
git submodule update --init --recursive
2017-01-09 09:06:00 +01:00
```
3. Download copyrighted images
```
cd webxoss-client
curl https://webxoss.com/images.tar | tar xv
cd -
2017-01-09 09:06:00 +01:00
```
Note:
* The card images are copyrighted by Takara Tomy. *NO BUSINESS USE*.
* If it's slow, you can replace `webxoss.com` with `cloudflare.webxoss.com`, `incapsula.webxoss.com` or `hongkong.webxoss.com:8080` to use proxy.
* Card images are compressed. Use [webxoss-fetch](https://github.com/webxoss/wixoss-fetch) to get raw images.
4. Install dependencies
```
npm install
```
## Run
2017-08-29 18:17:03 +02:00
WEBXOSS can be runned in 2 modes: **node** or **browser**.
2017-01-09 09:06:00 +01:00
### Node mode
Use nodejs to create a WEBXOSS server over network.
```
# listen to 127.0.0.1:80
node test.js
2017-08-29 18:17:03 +02:00
```
Then open `127.0.0.1`. That's it.
2017-01-09 09:06:00 +01:00
2017-08-29 18:17:03 +02:00
```
2017-01-09 09:06:00 +01:00
# or specify a port
node test.js port=8080
```
### Browser mode
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.
2017-04-11 04:01:28 +02:00
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.
2017-01-09 09:06:00 +01:00
Note:
* The "server" and "client" tabs use `postMessage` to simulate network communications. So you can only play with yourself in a browser.
2017-08-29 18:17:03 +02:00
* See this [test guide](https://github.com/webxoss/webxoss-core/wiki/Test-guide) for more test tricks.