Giter Site home page Giter Site logo

sunev / jinrou Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uhyo/jinrou

14.0 5.0 12.0 13.48 MB

Are you a werewolf?

License: Other

JavaScript 3.16% CoffeeScript 51.25% CSS 0.13% HTML 0.23% TypeScript 28.06% Dockerfile 0.03% Shell 0.01% Stylus 0.60% Pug 16.53%
werewolf

jinrou's Introduction

Table of Contents

月下人狼

Are you a werewolf?

月下人狼服务器运行中!

version

1.15.1

requirements

  • Redis
  • MongoDB >= 3.2

usage

  1. Copy the source code
    1. `git clone git://github.com/uhyo/jinrou.git`
  2. Install dependencies
    1. `cd jinrou`
    2. `npm install`
  3. Configure
    1. `cp -r config.default config`
    2. edit `config/app.coffee`
  4. Build front-end scripts
    1. `cd front`
    2. `npm install`
    3. `npm run production-build`
    4. `cd ..`
  5. Run databases
    1. run MongoDB
    2. run redis
  6. Run the application serverj
    1. SS_ENV=production SS_PACK=1 node app.js

development

To run in development mode, just run `node app.js`.

notes on front-end scripts

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.

using Docker

Optionally, one can use Docker to run the jinrou service.

The `Dockerfile` file and `docker` directory are only for this purpose.

docker image

To build the docker image for jinrou, run `docker build .` in the project directory. `Dockerfile` defines the image.

docker-compose

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.

jobs

全100种以上

基本

  • 村人
  • 占卜师
  • 灵能者
  • 狂人
  • 猎人
  • 共有者
  • 埋毒者
  • 人狼
  • 妖狐
  • 埋毒者
  • 大狼
  • 小狐

桃栗特殊

  • 蝙蝠
  • 贵族
  • 奴隶
  • 魔术师
  • 间谍
  • 人狼占卜师

桃栗期間限定

  • 逃亡者
  • 商人
  • 女王观战者
  • 狂人狼
  • 骗子
  • 间谍Ⅱ
  • 模仿者

うそつき人狼

  • **者
  • 占卜师的妈妈
  • 陷阱师
  • 狼少年
  • 国王

究极人狼

いろいろ

月夜の人狼

  • 看板娘
  • 慎重的狼
等等

options

  • 决定者
  • 权力者
  • 死亡笔记
  • 黑暗火锅
  • 半份黑暗火锅
  • 量子人狼

jinrou's People

Contributors

uhyo avatar sunev avatar hakoniwawind avatar yagamimirai avatar mm018347 avatar dependabot[bot] avatar kunologist avatar islxyqwe avatar chenerlang avatar tsujiyou avatar gennadiyev avatar

Stargazers

dlutzy avatar ee avatar Petrus Matiros avatar  avatar  avatar  avatar Eden avatar Mumu avatar imspace avatar スノル avatar  avatar  avatar  avatar Laforet avatar

Watchers

James Cloos avatar  avatar  avatar dlutzy avatar Eden avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.