doc(feat): add database seed reference to README

This commit is contained in:
Victor Westerlund 2025-03-11 07:09:54 +00:00
parent 25d8ac83ed
commit 12b7d907a2

View file

@ -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: