Laravel 5.6 based code for https://jonnybarnes.uk
Latest commit 4abff97 Jul 22, 2018
Permalink
Failed to load latest commit information.
app Feature, upload media to S3 as part of micropub request Apr 22, 2018
bootstrap Update the app to Laravel 5.5 Sep 4, 2017
config Update to Laravel 5.6 Feb 15, 2018
database Remove Instagram note, the image links expire Jun 23, 2018
public Update dependencies and re-compile assets Apr 22, 2018
resources update npm dependencies, fix map style menu issues Apr 15, 2018
routes Add CORS headers to the media endpoint Mar 2, 2018
scripts Update dependencies and re-compile assets Apr 22, 2018
storage Pull in latest laravel/laravel changes Mar 27, 2017
tests Add puppeteer back, update search test to search for a still existing… Jun 24, 2018
travis Improved test code coverage, including necessary refactor Dec 7, 2017
.editorconfig Add .editorconfig Feb 27, 2017
.env.dusk.testing See if there’s issues with saving session data Feb 24, 2017
.env.example Squashed commit of the following: Aug 11, 2017
.env.travis Struct Types Jan 15, 2018
.eslintrc.yml Get eslinting working again Mar 20, 2017
.gitattributes Squashed commit of the following: Aug 11, 2017
.gitignore Update the app to Laravel 5.5 Sep 4, 2017
.styleci.yml Allow grouped use statements, hopefully Mar 18, 2017
.stylelintrc Add the stylelint pre-commit hook Jun 20, 2016
.travis.yml Struct Types Jan 15, 2018
artisan Update the app to Laravel 5.5 Sep 4, 2017
changelog.md Bump version number to 0.16.6 Apr 22, 2018
composer.json composer update Jul 22, 2018
composer.lock composer update Jul 22, 2018
helpers.php Remove unwanted query parameters from normalized URLs Jan 12, 2018
license.md Add a license file Sep 17, 2016
package-lock.json Add puppeteer back, update search test to search for a still existing… Jun 24, 2018
package.json Add puppeteer back, update search test to search for a still existing… Jun 24, 2018
phpcs.xml Adding phpcs to travis-ci Nov 20, 2017
phpunit.xml Update collision to v2 and add phpunit support Feb 19, 2018
readme.md Updating codebase to use es6/7 Jan 26, 2017
server.php Squashed commit of the following: Aug 11, 2017
webpack.config.js Update to webpack 4.0 Mar 1, 2018

readme.md

jonnybarnes.uk

This is the code that runs my website, jonnybarnes.uk.

In theory this is usable by other now :D

Set up the database, this software needs PostgreSQL with the PostGIS plugin. After installing these:

$ createdb -E utf8 db_name
$ psql -d db_name -c 'CREATE EXTENSION postgis'

First get the code, and make sure you’re on the master branch. This branch will only have tagged releases:

$ git clone https://github.com/jonnybarnes/jonnybarnes.uk mysite.com
$ cd mysite.com
$ git checkout master

Then we need to set up the environment variables that the app will use.

$ cp .env.example .env
$ vim .env

Fill in the various variables. Then we can set up the app:

$ composer install
$ php artisan key:generate
$ php artisan migrate

Now we need to edit some config values. In config/app.php edit name, and in config/syndication.php edit it to the appropriate values or set targets to [].

Some other things that should be changed. Go to resources/views/master.blade.php, you may not want to link to a projects page. Also in the <head> the two last links are to my profile pic and pgp key, ammend/remove as desired.

Now point your server to public/index.php and viola. Essentially this is a Laravel app so debugging things shouldn’t be too hard.