An open API service indexing awesome lists of open source software.

https://github.com/playshikiapp/playshikiserver

A server side app restoring old play.shikimori.org functionality
https://github.com/playshikiapp/playshikiserver

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

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

# Installation

PlayShikiServer requires [Python 3](https://www.python.org/downloads/release/python-373/) to run.

Install the dependencies:

```sh
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.