From 12b7d907a23612622a60486c77b07bb1fbe7c305 Mon Sep 17 00:00:00 2001 From: vlw Date: Tue, 11 Mar 2025 07:09:54 +0000 Subject: [PATCH] doc(feat): add database seed reference to README --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 988f7b3..e1a8ef1 100644 --- a/README.md +++ b/README.md @@ -41,9 +41,10 @@ cd /var/www/vlw.se ``` ## 4. Import the database templates -There's are two SQL files that you can download from the releases page that has a snapshot of the MariaDB databases I use on my live website. The snapshot data for the website databse is not guaranteed to be up to date; but the database structure will be. Download and import these files into two existing databases. One for the website data, and the other has the Reflect API configurations. +There's are two SQL files in [`/src/Database/Seed/`](https://codeberg.org/vlw/vlw.se/src/branch/master/src/Database/Seed) that you can use to initialize the two databases required for this website. -- [Download SQL-snapshots](https://codeberg.org/vlw/vlw.se/releases) +- `vlw` - This database has the website data and should be added to the `db` variable under `server_database` in `/.env.ini` +- `vlw_reflect` - This is the Reflect database that has all the endpoints pre-configured. You'll have to add your own ACL rules. ## 5. Set environment variables Make a copy of the `.env.example.ini` file called `.env.ini` from the root directory of the repo. There are a few parameters you can change here but the required ones are the following: