Go to file
Jonas Leder b1db76d7c5 set only atributes existing on the original image 2022-07-15 15:43:58 +02:00
.devcontainer add gpg package to devcontainer 2022-01-30 09:28:57 +01:00
js set only atributes existing on the original image 2022-07-15 15:43:58 +02:00
public remove fay 2022-07-13 12:29:51 +02: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
.gitignore sort items 2021-09-26 00:20:44 +02:00
.gitlab-ci.yml add binfmt 2022-02-25 10:14:48 +01:00
Dockerfile Revert "switch to php 8.1" 2022-06-13 22:20:20 +02:00
LICENSE LICENSE hinzufügen 2021-02-28 09:51:29 +00:00
Readme.md add new readme file 2022-05-20 16:44:43 +02: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
nginx.conf add 404 page nginx config 2022-01-18 19:45:43 +00:00
package.json renme compile job to build 2022-03-08 08:57:52 +01: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

Readme.md

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: gitlab.jonasled.de/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: gitlab.jonasled.de/jonasled/website:latest
    restart: always
    volumes:
      ./config.php:/var/www/html/API/lib/config.php
    ports:
      - "80:80"