Skip to content

A server side app restoring old play.shikimori.org functionality

License

Notifications You must be signed in to change notification settings

PlayShikiApp/PlayShikiServer

Repository files navigation

PlayShikiServer

A server side app restoring old play.shikimori.org functionality

Installation

PlayShikiServer requires Python 3 to run.

Install the dependencies:

cd PlayShikiServer
pip3 install -r requirements.txt
cd ..
git clone https://github.com/PlayShikimoriApp/PlayShikiClient
cd PlayShikiServer

Restore database from backup:

cat db/dump_example.sql | sqlite3 db-test.sqlite

Generate keys (used for server responses encoding):

./utils/genkeys.py 2048 key.priv
./utils/genkeys.py $(( 64 * 1024 )) key2.priv

Set up database URI:

echo "sqlite:///../db-test.sqlite" > .env

Configure client-side application:

Install dependencies

cd ../PlayShikiClient
npm install
sudo npm install -g pkg

Generate *.js keys:

./utils/genkeys.py key.priv keys/key.js
./utils/genkeys.py key2.priv keys/key2.js

Configure host address and port in config.js file

module.exports = {
   "HOST": "127.0.0.1",
   "PORT": "8100"
}

Start server

Now start the server:

cd ../PlayShikiServer
nohup runserver.py &

Client app packaging and run

cd ../PlayShikiClient
pkg .

Run Shikimori.exe and leave it running in background.

About

A server side app restoring old play.shikimori.org functionality

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published