Source code for https://vlw.se
Find a file
Victor Westerlund 0baa6f8d85 chore: clean up some missed references to battlestation (#27)
It looks like I missed a few references to the "battlestation" pages and API that I removed in #24

Reviewed-on: https://codeberg.org/vlw/vlw.se/pulls/27
2025-03-05 12:37:01 +00:00
endpoints fix(content): remove "battlestation" pages (#24) 2025-02-05 04:58:13 +00:00
public chore: clean up some missed references to battlestation (#27) 2025-03-05 12:37:01 +00:00
src chore: clean up some missed references to battlestation (#27) 2025-03-05 12:37:01 +00:00
.env.example.ini refactor: major refactor, design overhaul and merge of Reflect API and Vegvisir sources into the same root (#23) 2025-02-05 04:49:23 +00:00
.gitignore refactor: major refactor, design overhaul and merge of Reflect API and Vegvisir sources into the same root (#23) 2025-02-05 04:49:23 +00:00
composer.json refactor: major refactor, design overhaul and merge of Reflect API and Vegvisir sources into the same root (#23) 2025-02-05 04:49:23 +00:00
composer.lock refactor: major refactor, design overhaul and merge of Reflect API and Vegvisir sources into the same root (#23) 2025-02-05 04:49:23 +00:00
install.sh chore: add support for Vegvisir 3.1 (#11) 2024-11-18 20:53:29 +00:00
LICENSE feat: release 1.0.0 (#1) 2024-04-01 10:22:25 +00:00
package-lock.json chore: add support for Vegvisir 3 (#1) 2024-09-27 09:32:52 +00:00
package.json chore: add support for Vegvisir 3 (#1) 2024-09-27 09:32:52 +00:00
README.md refactor: major refactor, design overhaul and merge of Reflect API and Vegvisir sources into the same root (#23) 2025-02-05 04:49:23 +00:00

vlw.se

This is the source code behind vlw.se which is my personal website that I have written and designed from the ground up. The website is built on top of my own web framework and its API is also built on top of my own API framework.

Installation

Here's how you get my website up and running on your own machine. Note, I have only tested this on Linux and the install script we will run later is written in bash.

Make sure you have both of these package managers installed before proceeding:

1. Clone this repo

Clone/download this repo to your machine. Preferably to a non-public directory - the frameworks will handle that.

git clone https://codeberg.org/vlw/vlw.se --depth 1

2. Install Vegvisir and Reflect

Follow the installation instructions for my web, and API framework. This site uses the default configuration for both frameworks so the only thing you need to do after you've installed both is to point the root_path and endpoints directory respectively to the directory where you cloned this repo.

Example:

# Vegvisir
root_path = "/var/www/vlw.se"
# Reflect
endpoints = "/var/www/vlw.se"

3. Run the install script

Run the install.sh script from the root of the repo directory. Make sure you have the required package managers installed.

Example:

# vlw@example:$
cd /var/www/vlw.se
# vlw@example:/var/www/vlw.se$
./install.sh

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.

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:

[client_api]
base_url = ""
api_key = ""

[server_database]
host = ""
user = ""
pass = ""
db   = ""

Please refer to the comments in the ini file for more information about each field.

Done!

That should be it. Navigate to your configured Vegvisir public host!