Laravel based code that runs my personal website
Find a file
Jonny Barnes 1c7bff508f Squashed commit of the following:
commit ebbaf83a331395d86754f231ebf3852c31ee13e7
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Tue Sep 19 16:07:16 2017 +0100

    Show just a name if no known author url

commit 7c3fc38a5101635efbb1659d7dc0e4e87f28977a
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Tue Sep 19 15:55:07 2017 +0100

    Update changelog

commit e05876d604b2655fdd1b03fe5390c3333cd5e064
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Tue Sep 19 15:54:10 2017 +0100

    Add a trait for testing tokens

commit 1288769757e6c69fccf849a73ef53e6497953d74
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Tue Sep 19 15:53:54 2017 +0100

    Add a test for the process like job

commit d85a7109d51c979846b2b15d92e2b4c3978c6dc7
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Tue Sep 19 15:53:25 2017 +0100

    fix typo, and allow for array of author info, or just a name

commit 1fc63c6fb6c5648e31759502a011b2be0525af54
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 15:38:16 2017 +0100

    Add another test for creating likes

commit 487723ac41fa00a8182f5bf3665ab7b5f8fece52
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 15:38:03 2017 +0100

    fix unexpected end of file error

commit a24eef82ae7a2a3e1d3943a6cfed85757c713434
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 15:37:31 2017 +0100

    Better response when creating likes

commit fa49df98613b136167dc093a97745eeb90a4a7a6
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 14:43:39 2017 +0100

    Make the author fields nullable

commit 5a2f9273c18cf31a54eb54f40732024159c3dc2d
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 14:43:20 2017 +0100

    Delegate to the LikeService for creating likes

commit 801d6567ec3456cbcdfa6260339dd9ed2fdfa5b0
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 14:42:54 2017 +0100

    Create the Job that gets the content of the like and the author info

commit df563473606b43a330c4e977b230d4b7b2a85268
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 14:42:28 2017 +0100

    Create the service the mpub controller delegates to

commit ab6ebee71ffdeb584bbef0454874d3fc1c6499f4
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 14:42:08 2017 +0100

    Allow Like::create to work for just the url

commit 6d70c43f11056597a493f863c3a1ac681ed06b71
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 14:10:20 2017 +0100

    Add some initial tests

commit 4049342b061594656dbf7183d7428f95ba6b3598
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 14:10:06 2017 +0100

    Add database migration/seed/factory

commit 5b3aa20fa14202e84af310477b97044723201ea7
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 14:09:21 2017 +0100

    Add domain logic for likes

commit 7ef5392a1833df6cee77ecb1166af4fc0abc0eb5
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Sep 18 14:08:47 2017 +0100

    Add routes for likes
2017-09-19 16:07:32 +01:00
app Squashed commit of the following: 2017-09-19 16:07:32 +01:00
bootstrap Update the app to Laravel 5.5 2017-09-04 19:34:39 +01:00
config Responsive images 2017-09-16 11:39:36 +01:00
database Squashed commit of the following: 2017-09-19 16:07:32 +01:00
public Responsive images 2017-09-16 11:39:36 +01:00
resources Squashed commit of the following: 2017-09-19 16:07:32 +01:00
routes Squashed commit of the following: 2017-09-19 16:07:32 +01:00
scripts Responsive images 2017-09-16 11:39:36 +01:00
storage Pull in latest laravel/laravel changes 2017-03-27 19:10:51 +01:00
tests Squashed commit of the following: 2017-09-19 16:07:32 +01:00
travis Squashed commit of the following: 2017-04-21 16:38:39 +01:00
.babelrc Generate source-maps from babel and uglifyjs 2017-03-21 16:34:17 +00:00
.editorconfig Add .editorconfig 2017-02-27 11:45:15 +00:00
.env.dusk.testing See if there’s issues with saving session data 2017-02-24 15:44:39 +00:00
.env.example Squashed commit of the following: 2017-08-11 21:02:03 +01:00
.env.travis Use prediined app key in both http tests, and browser tests 2017-02-24 11:10:53 +00:00
.eslintrc.yml Get eslinting working again 2017-03-20 19:45:46 +00:00
.gitattributes Squashed commit of the following: 2017-08-11 21:02:03 +01:00
.gitignore Update the app to Laravel 5.5 2017-09-04 19:34:39 +01:00
.styleci.yml Allow grouped use statements, hopefully 2017-03-18 21:18:02 +00:00
.stylelintrc Add the stylelint pre-commit hook 2016-06-20 22:11:12 +01:00
.travis.yml Attempting to get imagemagick support with php 2017-09-16 12:01:05 +01:00
artisan Update the app to Laravel 5.5 2017-09-04 19:34:39 +01:00
changelog.md Squashed commit of the following: 2017-09-19 16:07:32 +01:00
composer.json Responsive images 2017-09-16 11:39:36 +01:00
composer.lock composer update 2017-09-16 18:22:54 +01:00
dependencyci.yml Add DependencyCI support 2016-07-12 17:28:49 +01:00
helpers.php Add a Carbon helper function 2017-09-13 16:13:58 +01:00
license.md Add a license file 2016-09-17 21:20:57 +01:00
package-lock.json Updates 2017-09-11 11:30:05 +01:00
package.json composer update && npm update 2017-09-08 14:27:22 +01:00
phpunit.xml Update the app to Laravel 5.5 2017-09-04 19:34:39 +01:00
readme.md update readme to reflect changes to how syndication targets need to be set 2016-12-16 13:26:10 +00:00
server.php Squashed commit of the following: 2017-08-11 21:02:03 +01:00
webpack.config.js A different approach to Piwik Javascript tracker inclusion 2017-07-06 12:35:19 +01:00

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 youre 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 shouldnt be too hard.