This PR removes the website version page and reference from the about page. Its pretty unreliable and doesn't really matter to the reader anyways. Reviewed-on: https://codeberg.org/vlw/vlw.se/pulls/6 Co-authored-by: Victor Westerlund <victor.vesterlund@gmail.com> Co-committed-by: Victor Westerlund <victor.vesterlund@gmail.com> |
||
|---|---|---|
| api | ||
| assets | ||
| public | ||
| shells | ||
| src/client | ||
| .env.example.ini | ||
| .gitignore | ||
| composer.json | ||
| composer.lock | ||
| install.sh | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
vlw.se
This is the source code behind vlw.se which has been written from the ground up by me. This website is built on top of my Vegvisir web framework and my Reflect API framework.
Installation
If you for whatever reason want to get this website up and running for yourself this is how that is done.
This website requires the following prerequisites
- PHP 8.0+
- MariaDB 14+
- The NPM package manager
- The Reflect API framework
- The Vegvisir web framework
- The composer package manager
Confimed supported framework versions:
| Vegvisir | Reflect |
|---|---|
✅ 3.0.1 |
✅ 2.7.2 |
Website (Vegvisir)
-
Download this repo
Git clone or download this repo to any local folder
git clone https://codeberg.org/vlw/vlw.se -
Download and install Vegvisir
Follow the installation instructions for Vegvisir and point the
root_pathvariable to your local vlw.se folder. -
Run the install script
This bash script will install dependencies and make npm modules public.
./install.sh
Et voila! You probably want to install the API-side too but the website itself should now be accessible from your configured Vegvisir host.
API (Reflect)
The API (and database) is where most content is stored and served from on this website.
-
Download this repo
You can skip this if you've already downloaded the repo from step 1 in the website installation.
Otherwise... Git clone or download this repo to any local folder
git clone https://codeberg.org/vlw/vlw.se -
Download and install Reflect
Follow the installation instructions for Reflect and point the
endpointsvariable to the/apisubdirectory in the local vlw.se folder. -
Install dependencies
cdinto the api folder and install dependencies with composer.composer install --optimize-autoloader -
Create and import database
[Create and] import the two databases associated with vlw.se data and the Reflect API configurations from
.sqlfiles on the Releases page. -
Set environment variables
Make a copy of
/api/.env.example.iniand change the[vlwdb]variables with your MariaDB credentials. -
Set environment variables for website
It's reasonable to assume if you've installed the website from this repo that you'd also want to use the API with it. Start my making a copy of
/.env.example.ini(root directory) and change the[api]variables to point to your API hostname.