Skip to content

ezimuel/zimuel.it

Repository files navigation

Enrico Zimuel web site

Build Status

This repository contains the source code of Enrico Zimuel web site.

The web site is built using the following technologies:

The blog post section is managed using static HTML files, collecting the data for pagination using a simple cache file in PHP.

Installation

You need to use composer to install all the library dependencies:

composer install

If you don't have the composer command installed in your system, you can install following these steps.

Configuration

In order to run the web site you need to have an API key from SparkPost and a secret value from Invisible reCAPTCHA.

These values need to be stored in /config/autoload/sparkpost.local.php and /config/autoload/recaptcha.local.php. You can generate these files starting from the *.local.php.dist versions and copy in *.local.php.

Blog

The blog posts are stored in the /data/posts folder. If you modify, add or delete a blog post you need to remove the /data/cache/posts.php file. This file will be autogenerated on the first load of a blog related page.

Run

For testing purpose, you can run the website using the internal web server of PHP, running the following command:

php -S 0.0.0.0:8000 -t public public/index.php

If you want to deploy the website in a production environment you need to use public as web directory.

You can optimize the composer autoload in a production environment and omit the dev requirement using the following command:

composer install --no-dev --optimize-autoloader

Copyright

Copyright (c) 2001-2017, Enrico Zimuel.