yggdrasil/README.md

22 lines
412 B
Markdown
Raw Normal View History

2023-06-18 22:27:08 +05:30
# Yggdrasil
Self-hosted Minecraft authentication server with authlib-injector support
# Setup
1. Declare database URL
```sh
$ export DATABASE_URL="sqlite:yggdrasil.db"
```
2023-06-18 23:28:50 +05:30
1.5 Create .env
```sh
echo 'DATABASE_URL="sqlite:yggdrasil.db" >> .env'
```
2023-06-18 22:27:08 +05:30
2. Create database (install sqlx cli tool if not already)
```sh
$ sqlx db create
```
3. Run SQL migrations (this creates the tables)
```sh
$ sqlx migrate run
```