22 lines
412 B
Markdown
22 lines
412 B
Markdown
# Yggdrasil
|
|
Self-hosted Minecraft authentication server with authlib-injector support
|
|
|
|
# Setup
|
|
1. Declare database URL
|
|
```sh
|
|
$ export DATABASE_URL="sqlite:yggdrasil.db"
|
|
```
|
|
1.5 Create .env
|
|
```sh
|
|
echo 'DATABASE_URL="sqlite:yggdrasil.db" >> .env'
|
|
```
|
|
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
|
|
```
|
|
|