Skip to content
/ shinkgs Public
forked from jkk/shinkgs

A JavaScript client for the KGS Go Server

License

Notifications You must be signed in to change notification settings

vash3g/shinkgs

 
 

Repository files navigation

Shin KGS

Build Status

An unofficial JavaScript client for KGS Go Server.

Screenshot

Screenshot - iOS Safari

Goals

  • First-class web and mobile experience
  • Retain community vibe of KGS
  • Start small, release early
  • Work towards native versions (Electron, React Native, Cordova)
  • Bus factor > 1

Progress

  • Game lists
  • Game spectating and chat
  • Room chat
  • User chat (direct messaging)
  • View and edit user details
  • Submit challenge proposal (no negotiating)
  • Create challenge
  • Negotiate challenge
  • Automatch
  • Basic game playing
  • Full-featured game playing (fine-tuned UI, rengo, simul)
  • Review tools
  • Admin/moderation tools
  • Everything else

For more details, look at the milestones

Contributing

Contributions welcome. Please check the milestones and the issues to help coordinate efforts. Feel free to create an issue if there isn't one already for what you have in mind.

Issues with the "difficulty-easy" label are good tasks to get started on. Reach out if you need any guidance!

Discord chat group for anyone interested in helping: https://discord.gg/vwzxdVr

Code Overview

This project uses JavaScript, React, and ES6+ with Flow types. VS Code (with eslint and flow extensions added) is a great editor for this setup.

State is managed with a Redux-like pattern: there is a single, primary source of truth for app state, plus a bit of component-local state. Messages describing actions are dispatched, which handlers then process to produce the next app state. Unlike typical Redux, no implicit context is used. Everything is passed down through props.

Development Setup

You'll need Node.js and Yarn.

To install and start a local dev server, run:

yarn install
yarn start

Note: the dev server will use HTTPS, which is required to interact with the KGS API. You will have to trust the self-signed certificate.

Requests are sent to the official KGS API by default. At the moment it's not possible to use a dev KGS API server.

We use Travis as a continuous integration service. The Travis job will run yarn lint and yarn flow and fails if those fail. So make sure to use those commands locally before pushing.

Deployment

The official and stable build lives at https://shin.gokgs.com. Each commits is also build and deployed on now.sh on:

https://shinkgs-BRANCH.now.sh

With BRANCH being one of the Git branches of this repository. For example, a live version of master is always available at https://shinkgs-master.now.sh. Warning: the master branch should always work but is certainly not bullet-proof and bug-free. Use the official build for any sensitive games (such as tournaments).

If you are developing the app and want to deploy in the could, use the now.sh service:

yarn global add now
yarn now-deploy

This builds the app then pushes it out to the cloud with a unique URL.

References

Similar Projects

About

A JavaScript client for the KGS Go Server

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 76.0%
  • CSS 23.5%
  • HTML 0.5%