No description
This repository has been archived on 2026-11-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • JavaScript 58.5%
  • HTML 31.3%
  • Stylus 5.2%
  • PHP 4.6%
  • Dockerfile 0.4%
Find a file
2023-01-20 22:13:32 +01:00
.devcontainer add gpg package to devcontainer 2022-01-30 09:28:57 +01:00
js fix check if rel is in social buttons 2023-01-07 15:35:00 +01:00
public fix mastodon icon different from others 2023-01-07 15:36:47 +01:00
styl remove normalize 2022-03-25 12:06:08 +01:00
.dockerignore use same as gitignore 2021-09-26 00:20:53 +02:00
.drone.yml fix ci 2022-12-28 03:23:44 +01:00
.gitignore sort items 2021-09-26 00:20:44 +02:00
.gitlab-ci.yml add ci script 2023-01-20 22:13:32 +01:00
composer.json get hcaptcha sitekey using graphql 2022-03-08 09:54:38 +01:00
composer.lock get hcaptcha sitekey using graphql 2022-03-08 09:54:38 +01:00
database.sql move db template in project root 2021-06-17 11:34:56 +02:00
Dockerfile fix php image tag 2022-11-29 09:35:50 +01:00
LICENSE LICENSE hinzufügen 2021-02-28 09:51:29 +00:00
nginx.conf add 404 page nginx config 2022-01-18 19:45:43 +00:00
package.json update to new gitlab domain 2022-09-30 21:13:21 +02:00
Readme.md update to new gitlab domain 2022-09-30 21:13:21 +02:00
template.html add template html file 2022-01-29 16:50:34 +01:00
webpack.conf.js fix cookie notice 2021-03-24 23:07:40 +01:00
yarn.lock switch from sass to style as preprocessor 2022-01-17 12:13:55 +01:00

Website

This is the repo containing my personal website. It is based on simple HTML pages, with custom HTML componetes, for things like header and footer. The components are written in pure CS and compiled with webpackt to one big file. In this step also the dependencies are getting injected. Stylesheets are written in stylus and then compiled to CSS in the build process. For the backend there is a GraphQL endpoint at /API/graphql.php which holds most of the resources, for files (ebay images and S3) there are seperate endpoints in the API directory. Comments and the blog ist stored in a MySQL Database.

Dev-Setup

Requirements

  • NodeJS
  • Yarn
  • PHP 8 with the following extensions:
    • mysqli
    • mbstring
    • curl
    • simplexml
  • Composer

Setup

  1. Install the node dependencies: yarn install
  2. Install the PHP depdendencies: composer install
  3. Start the dev environment: yarn watch This will start the compile service for the JavaScript and the stylus files and also start a PHP dev server on port 1234

Production-Setup

For production there is a docker images with the following name available: jonasled.dev/jonasled/website:latest. The configuration is stored in the config PHP, a example file is available in this repo in the /public/API/lib folder. Later this file has to be mounted at /var/www/html/API/lib/config.php A example compose could look like this:

version: '3.2'

services:
  website:
    image: jonasled.dev/jonasled/website:latest
    restart: always
    volumes:
      ./config.php:/var/www/html/API/lib/config.php
    ports:
      - "80:80"