mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2026-04-13 01:39:40 +02:00
Source code for https://vlw.se
In this PR we move all of the CSS and JavaScript assets from the public assets directory to a new directory in the project root. The main reason for this is that I would like to believe this makes them easier to find. Since all CSS and JS is bundled with each page anyways there is no need to access these directly from a public directory. The main argument against this I think would be "transparency". We already run this site with `display_php_source=true` in Vegvisir (so page source code can be inspected by appending `.php` to the end of a url. But there is of course no reason to trust that it's the actual source code. Reviewed-on: https://codeberg.org/vlw/vlw.se/pulls/72 |
||
|---|---|---|
| api | ||
| assets | ||
| public | ||
| reflect@8119464c1d | ||
| src | ||
| vegvisir@08758c560f | ||
| .env.example.ini | ||
| .gitignore | ||
| .gitmodules | ||
| composer.json | ||
| composer.lock | ||
| install.sh | ||
| LICENSE | ||
| README.md | ||
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 Vegvisir web framework and its optional REST API is built on top of my Reflect 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 requires Bash with coreutils installed.
Prerequisites
- A web server
- A MariaDB/MySQL server
- PHP 8.4 or newer with the following extensions enabled:
-
php8.4-mysql
-
php8.4-mbstring
- The composer package manager
- Bash with
coreutilsinstalled (for the install script)
1. Clone this repo
Clone this repository with its submodules. Preferably to a non-public directory - the frameworks will handle that.
git clone https://codeberg.org/vlw/vlw.se --recurse-submodules --depth 1
2. Run the install script
Run the install.sh script from the root directory of this repository.
./install.sh
This script will install and configure Vegvisir, Reflect, and the website through a few propmpted steps.