Skip to content

samwrigley/samwrigley.co.uk

Repository files navigation

Personal Website

CI StyleCI

Hello, I'm Sam Wrigley. I'm a Web-Developer and Graphic Designer.

This is the source for my personal website 👉 samwrigley.co.uk.

You can also find me on: 🐦 Twitter | 📷 Instagram | 💼 LinkedIn

Installation ⏳

First, clone the repository:

git clone https://github.com/samwrigley/samwrigley.co.uk.git
cd samwrigley.co.uk

Second, install Composer and npm dependencies:

composer install
yarn install

Next, copy the example environment file and set the application key:

cp .env.example .env
php artisan key:generate

Finally, run the database migrations and seed the database:

yarn seed:dev

Development 🛠

To build the JavaScript and CSS assets use:

yarn dev

To rebuild the JavaScript and CSS assets whenever they change use:

yarn watch

Testing 🔄

To run the PHP tests use:

php artisan test --parallel

To run the Cypress tests use:

yarn cypress:setup
yarn cypress:run
yarn cypress:cleanup

To run PHP static analysis use:

./vendor/bin/phpstan analyse

To run PHP quality checks use:

php artisan insights

Linting 🧹

To check all files are correctly linted use:

yarn lint

To fix any linting issues use:

yarn lint:fix