https://github.com/krabiworld/knight
Deprecated backend for chess social network Knight (replaced by knight-nest)
https://github.com/krabiworld/knight
firebase java kotlin ktor
Last synced: 4 months ago
JSON representation
Deprecated backend for chess social network Knight (replaced by knight-nest)
- Host: GitHub
- URL: https://github.com/krabiworld/knight
- Owner: krabiworld
- License: mit
- Created: 2022-09-09T12:36:46.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-01T16:12:14.000Z (over 1 year ago)
- Last Synced: 2025-03-01T17:23:41.122Z (over 1 year ago)
- Topics: firebase, java, kotlin, ktor
- Language: Kotlin
- Homepage:
- Size: 75.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Knight
Chess Social Network,
[ui](https://knight.chesscord.wiki)
([repo](https://github.com/Headcrab/knight-ui)),
[docs](https://docs.chesscord.wiki),
[api](https://headcrab.gitbook.io/knight/)
## Instruction
1. Clone this repository.
```shell
git clone https://github.com/HeadcrabJ/knight.git
```
2. Create project in Firebase.
3. Click to Settings icon and choose `Project settings`.
4. Click to tab `Service accounts`, choose `Firebase Admin SDK` and click button `Generate new private key`.
5. Rename `.env.example` to `.env` and write to this file required data (Don't forget specify path to the Firebase Admin SDK file).
#### Build and run with Java
7. Install OpenJDK 17.
```shell
apt install openjdk-17-jdk
```
7. Build JAR.
```shell
./gradlew shadowJar
```
9. Run JAR.
```shell
java -jar build/libs/knight.jar
```
#### Build and run with Docker
7. Install Docker.
```shell
apt install docker
```
8. Build image.
```shell
docker build -t knight .
```
9. Run container.
```shell
docker run -d -p 8787:8787 knight
```
Developed by [u032](https://github.com/orchst) and [Headcrab](https://github.com/HeadcrabJ)