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
- Host: GitHub
- URL: https://github.com/playshikiapp/playshikiserver
- Owner: PlayShikiApp
- License: osl-3.0
- Created: 2019-05-25T14:39:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T20:34:42.000Z (almost 2 years ago)
- Last Synced: 2025-01-14T08:52:27.030Z (4 months ago)
- Language: HTML
- Size: 2.12 MB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.