Lesser fork of lichess. https://spacecruft.org/deepcrayon/lila
 
 
 
 
 
 
Go to file
Thibault Duplessis 0f4367fa36 change featured game if a way better one exists 2013-08-02 10:40:07 +02:00
app add TV site menu link 2013-08-01 14:20:28 +02:00
bin escape all translation keys as scala literals 2013-07-30 21:41:17 +02:00
conf hu "Magyar" translation #4114. Author: Anonymous. 2013-08-02 00:00:55 +02:00
doc document static domain and provide default configuration 2013-06-12 14:13:20 +02:00
modules change featured game if a way better one exists 2013-08-02 10:40:07 +02:00
project tweak build settings formatting 2013-07-30 18:38:55 +02:00
public better TV link 2013-08-01 14:08:04 +02:00
serve Use the /serve directory to expose large files with the webserver 2012-05-29 00:33:28 +02:00
test move User.nb* to User.Count.* 2013-06-02 13:04:18 +02:00
.gitignore complete Ai stresser 2013-06-05 22:59:06 +02:00
.gitmodules show user timeline on homepage 2013-05-24 15:49:02 +02:00
README.md update readme 2013-07-29 10:18:05 +02:00
todo change featured game if a way better one exists 2013-08-02 10:40:07 +02:00

README.md

lichess.org

It's a free online chess game focused on realtime and simplicity.

It haz a search engine, computer analysis, tournaments, forums, teams,
and a weird monitoring console. The UI is available in 72 languages thanks to the community.

Lichess is written in Scala 2.10, and relies on Play 2.1 for the routing, templating, and JSON. Pure chess logic is contained in scalachess submodule. The codebase is fully asynchronous, making heavy use of Scala Futures and Akka 2 actors. Lichess talks to Stockfish using a FSM Actor to handle AI moves and analysis. It uses MongoDB 2.4 to store about 10 million games, which are indexed by elasticsearch 0.90. HTTP requests and websocket connections are proxied by nginx 1.4.

Join us on #lichess IRC channel for more info.

Installation

This is full-stack application, not a library, and it may not be straightforward to get it fully running. I assume you run a Unix with nginx, mongodb, elasticsearch and stockfish installed.

Some steps of the installation will trigger a download of the galaxy. It will take ages.

git clone git://github.com/ornicar/lila
cd lila
git submodule update --init
bin/play compile

Configuration

cp conf/application.conf.dist conf/application.conf

application.conf extends base.conf and can override any value. Note that application.conf is excluded from git index.

Websocket proxying and language subdomains

When accessed from the root domaing (e.g. lichess.org), the application will redirect to a language specific subdomaing (e.g. en.lichess.org). Additionally, lichess will open websockets on the socket. subdomain (e.g. socket.en.lichess.org).

Here is my local nginx configuration for l.org, assuming lila is installed in /home/thib/lila and runs on 127.0.0.1:9000 /etc/nginx/l.org.conf

And here is my local /etc/hosts file

Run it

Launch the play console:

bin/play

From here you can now run the application (run).

Credits

Big thanks go to lichess community for the support, inspiration, bug reports, and amazing translation efforts.

Special thanks go to:

Thanks to all players for feeding the database.