Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

191 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kate.pet

Personal website written in PHP, using Smarty for templates, and a lot of home-made CSS.

Screenshots

image

image

image

Setup development environment

For a development environment you must have the following installed;

  • nginx
  • PHP 8.x
    • php-fpm
    • composer (see)
  1. copy .env.example to .env and replace the proper variable with your own (like WEB_ROOT with where you cloned this repo.)
  2. copy nginx.conf to where your nginx configs go (and replace kate.pet with whatever domain you wish) and make sure that fastcgi_pass is using the correct socket location.
  3. make sure you install dependencies with composer install (in the web folder)

and you should be set :3

Notes for Kate

  • when adding a blog post, make sure that there is a .md file with the same name as the .php file in ./web/blog_posts/
    • this is because retrieveBlogPost($postId) fetches the content by fetching a file with the same name as the postId provided but with the extension of .md instead of .php
  • when fetching stuff from the GET parameters (in $_REQUEST), make sure to sanitize with the basename function

About

Personal Website written in PHP

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages