Skip to content
/ KKuTu Public
forked from KKuTu-Korea/KKuTu

Rule the words! KKuTu Online - 끄투코리아 공식 레포지토리 입니다.

License

Notifications You must be signed in to change notification settings

bf-dev/KKuTu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KKuTu Korea

기상천외한 끝말잇기를 웹게임으로! 끄투코리아

끄투코리아 디스코드 네이버 카페 페이스북 유튜브

끄투코리아는 GPL 라이센스의 따라 소스를 공개하고 있습니다. 그에 따라 끄투코리아 또한 소스 사용에 제한을 두고 있습니다.

제한사항

  • 기존의 끄투 리소스를 제외한 끄투코리아의 모든 리소스(이미지, 음악 등)의 저작권은 모두 끄투코리아에게 있습니다. 이 레포지토리에 올려두았으나 실제로 사용시에는 원 레포지토리의 리소스를 사용해 주십시오.
  • 끄투는 GPL 라이센스를 따름에 따라 GPL 라이센스를 따르셔야 합니다.
  • 해당 레포지토리를 사용할때에는 사이트 하단에 정보를 기입하여 주십시오.

참고사항

해당 레포지토리에는 현재 끄투코리아에서 이용하고 있는 코드와 극히 일부 다른부분이 존재합니다. 그렇기 때문에 발생하는 오류에 대해서는 이슈를 남겨주시면 바로 반영하도록 하겠습니다.

KKuTu

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.

KKuTu Client

  • Not implemented

KKuTu server

For Windows

  1. Download or clone this repository to your machine.
  2. Install node.js and npm(this will be installed automatically).
  3. Install PostgreSQL database server and pgAdmin(this will be installed automatically).
  4. Run pgAdmin and put the SQL file(./db.sql) into your database.
    • For further details, visit my blog.
  5. Run the batch file(./server-setup.bat).
  6. 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.
  3. Install PostgreSQL database server via a package manager.
  4. Put the SQL file(./db.sql) into your database.
    1. Run a command like: sudo su -u postgres psql --quiet main < ./db.sql
  5. Run the shell script file(./server-setup.bat). (It is a bat file for Windows but it will also work on Linux.)
  6. Run these on working directory ./Server:
    1. (Web server) node lib/Web/kt_cluster.js 1
    2. (Game server) node lib/Game/kt_cluster.js 0 1

Common

  • You should edit the file(./Server/lib/sub/global.json) to connect to your PostgreSQL database server.
  • The host 127.0.0.2 is reserved for connections between your web server and game server.
  • Once the server is successfully installed, you can do just the last step of above-mentioned guideline whenever you want to run the server.
  • You can open a browser and go to 127.0.0.1(or external IP address for other people) to play KKuTu.
  • Ranking and some session features require Redis server. This is optional.

한국어

글자로 놀자! 끄투 온라인

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

끄투 클라이언트

  • 구현되지 않음

끄투 서버

Windows 전용

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

Linux 전용

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

공통

  • PostgreSQL 데이터베이스 서버에 접속하기 위해서는 설정 파일(./Server/lib/sub/global.json)에서 PG_PASS 값을 수정해야 합니다.
  • 호스트 127.0.0.2는 웹 서버와 게임 서버 사이의 연결을 위해 예약된 주소이므로 이 주소를 사용하지 말아야 합니다.
  • 서버가 정상적으로 설치된 다음부터는 서버를 실행시키기 위해서 가장 마지막 단계만 수행하면 됩니다.
  • 서버가 성공적으로 열린 후 웹 브라우저에서 127.0.0.1(다른 사람들은 해당 컴퓨터의 외부 IP 주소)로 접속하여 끄투를 즐길 수 있습니다.
  • 랭킹 및 세션 기능 일부는 Redis 서버가 실행되어야만 작동합니다. 일단 이를 설치하지 않아도 서버가 작동할 수 있도록 조치했습니다.

About

Rule the words! KKuTu Online - 끄투코리아 공식 레포지토리 입니다.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.9%
  • HTML 24.8%
  • CSS 18.3%