JJoriping / KKuTu

글자로 놀자! 끄투 온라인
http://jjo.kr/kkutu
GNU General Public License v3.0
328 stars 266 forks source link
casual-game online

KKuTu

한국어

글자로 놀자! 끄투 온라인

끄투는 여러분의 어휘력을 발휘할 수 있는 다양한 단어 게임들이 모여 있는 캐주얼 게임입니다. 로봇과 혼자서 게임을 할 수도 있고, 서버에 접속해 있는 다른 사람들과 함께 할 수도 있죠. 이 저장소는 여러분이 끄투를 즐기기 위해 준비해야 할 것들에 대해 알리고 있습니다.

설치 방법

Windows 환경

  1. 이 레포지토리를 내려받습니다.
  2. node.js 인스톨러를 내려받아 설치(버전 8 이상)합니다. npm과 함께 설치되어야 합니다.
  3. 명령 프롬프트에서 npm install -g grunt grunt-cli를 입력해 grunt를 설치합니다.
  4. PostgreSQL 인스톨러를 내려받아 pgAdmin(자동으로 설치됨)과 함께 설치합니다.
  5. pgAdmin을 실행시키고 SQL 파일(./db.sql)을 데이터베이스에 입력시킵니다.
  6. 배치 파일(./server-setup.bat)을 실행시킵니다.
  7. 배치 파일(./Server/run.bat)을 실행시킵니다.
    • 되도록 이 배치 파일을 직접 종료하지 말고 이를 실행시켜 나타나는 창을 종료하세요.

Linux 환경

  1. 이 레포지토리를 내려받습니다.
  2. 패키지 매니저를 이용하여 node.jsnpm을 설치(버전 8 이상)합니다.
  3. npm install -g grunt grunt-cli를 입력해 grunt를 설치합니다.
  4. 패키지 매니저를 이용하여 PostgreSQLpsql을 설치합니다.
  5. SQL 파일(./db.sql)을 데이터베이스에 입력시킵니다.
    1. 명령어를 다음 예와 같이 입력할 수 있습니다: sudo -u postgres psql --quiet main < ./db.sql
  6. 섈 스크립트 파일(./server-setup.bat)을 실행시킵니다. (Windows 전용 파일이지만 Linux에서도 작동합니다.)
  7. 경로 ./Server에서 다음 명령어들을 차례대로 실행합니다:
    1. (게임 서버) node lib/Game/cluster.js 0 1
    2. (웹 서버) node lib/Web/cluster.js 1

공통

라이선스

English

Rule the words! KKuTu Online

KKuTu is a casual game containing various word games that let players use their vocabulary. Players can play alone with a robot, or play with other players who have entered to a server. This repository provides you what you have to prepare to play KKuTu.

How to Install

For Windows

  1. Download or clone this repository to your machine.
  2. Install node.js and npm(this will be installed automatically). The version should be ≥8.
  3. Open cmd and run npm install -g grunt grunt-cli to install grunt.
  4. Install PostgreSQL database server and pgAdmin(this will be installed automatically).
  5. Run pgAdmin and put the SQL file(./db.sql) into your database.
    • For further details, visit my blog.
  6. Run the batch file(./server-setup.bat).
  7. Run the batch file(./Server/run.bat).
    • If you want to close the server, it is recommended that closing not the command prompt window, but the window generated by the command.

For Linux

  1. Download or clone this repository to your machine.
  2. Install node.js and npm via a package manager. The version should be ≥8.
  3. Run npm install -g grunt grunt-cli to install grunt.
  4. Install PostgreSQL database server via a package manager.
  5. Put the SQL file(./db.sql) into your database.
    1. Run a command like: sudo -u postgres psql --quiet main < ./db.sql
  6. Run the shell script file(./server-setup.bat). (It is a batch file for Windows but it will also work on Linux.)
  7. Run these on working directory ./Server in order:
    1. (Game server) node lib/Game/cluster.js 0 1
    2. (Web server) node lib/Web/cluster.js 1

Common

License