Are you a werewolf?
月下人狼服务器运行中!
1.14.42
- Redis
- MongoDB >= 3.2
- Copy the source code
- `git clone git://github.com/uhyo/jinrou.git`
- Install dependencies
- `cd jinrou`
- `npm install`
- Configure
- `cp -r config.default config`
- edit `config/app.coffee`
- Build front-end scripts
- `cd front`
- `npm install`
- `npm run production-build`
- `cd ..`
- Run databases
- run MongoDB
- run redis
- Run the application serverj
- SS_ENV=production SS_PACK=1 node app.js
To run in development mode, just run `node app.js`.
Built assets will be placed at `client/static/front-assets`. Also, intermediate files are placed at `front/dist-esm`.
Building procedures are cpu- and memory- expensive. If you do not want to build on your server, you can build locally and copy the results to the server.
For development, use `npm run watch` in the `front/` directory to keey updating the front-end assets.
In production mode, contents of `client/static/front-assets/` can be served with `Cache-Control: immutable`. This will increace the effect of caches.
Optionally, one can use Docker to run the jinrou service.
The `Dockerfile` file and `docker` directory are only for this purpose.
To build the docker image for jinrou, run `docker build .` in the project directory. `Dockerfile` defines the image.
To run jinrou in an isolated environment using docker-compose, enther `docker` directory and run `docker-compose up --build`. This starts the jinrou docker image along with mongodb and redis Docker containers. The `docker/config.docker` directory contains a config file for running jinrou in this environment.
全100种以上
- 村人
- 占卜师
- 灵能者
- 狂人
- 猎人
- 共有者
- 埋毒者
- 人狼
- 妖狐
- 埋毒者
- 大狼
- 小狐
- 蝙蝠
- 贵族
- 奴隶
- 魔术师
- 间谍
- 人狼占卜师
- 逃亡者
- 商人
- 女王观战者
- 狂人狼
- 骗子
- 间谍Ⅱ
- 模仿者
- 独裁者
- 占卜师的妈妈
- 陷阱师
- 狼少年
- 国王
いろいろ
- 看板娘
- 慎重的狼
- 决定者
- 权力者
- 死亡笔记
- 黑暗火锅
- 半份黑暗火锅
- 量子人狼