Skip to content

bradshawsguide/website

Repository files navigation

Bradshaw’s Guide For Tourists in Great Britain & Ireland

Bradshaw’s Guide logo.

Let this digital revival of a Victorian favourite be your guide to Britain and Ireland’s burgeoning railway network, as it existed in 1866.

Installation

  1. git clone [email protected]:bradshawsguide/website.git
  2. cd website
  3. git submodule update --init --recursive
  4. composer install
  5. npm install
  6. npm run build

Generated assets will be saved in the public directory.

Updating submodules

This project incorporates content from a second repo which included as a git submodule. To update this submodule, run:

git submodule foreach git pull origin main

Running locally

To run locally on macOS use Laravel Herd, a one click PHP development environment with zero dependencies.

When developing the site, you can automatically compile assets and refresh the browser. To start the Vite development server, run:

npm run dev

Repo structure

website
├── [content]            # CONTENT [submodule]
│
├── site                 # SOURCE
│   ├── blueprints       # Kirby panel blueprints
│   ├── collections      # Kirby collections
│   ├── config           # Kirby configuration
│   ├── controllers      # Kirby template controllers
│   ├── models           # Kirby page models
│   ├── plugins          # Kirby plugins
│   ├── snippets         # Template snippets
│   └── templates        # Kirby templates
│
├── public               # PUBLIC
│   ├── index.php        # Kirby launch script
│   └── assets
│       ├── fonts        # Web fonts
│       ├── icons        # Favicon and home screen icons
│       ├── images       # Raster images
│       ├── scripts      # JavaScript
│       ├── styles       # CSS styles
│       └── vectors      # Vector images
│
├── .editorconfig        # Text editor preferences
├── .gitignore           # List of files not tracked by git
├── .gitmodules          # List of submodules tracked by git
├── .htaccess            # Apache server config
├── .nvmrc               # Node version to use
├── .prettierignore      # List of files not to format with Prettier
├── composer.lock        # Composer manifest lock file
├── composer.json        # Composer manifest
├── eslint.config.js     # ESLint configuration
├── package-lock.json    # NPM manifest lock file
├── package.json         # NPM manifest
├── prettier.config.js   # Prettier configuration
├── LICENSE              # Project license
├── README.md            # This file
├── stylelint.config.js  # Stylelint configuration
└── vite.config.js       # Vite config

© 2013 Paul Robert Lloyd