Skip to content

mattboostkit/WHPubs

Repository files navigation

WH Pubs

A website for WH Pubs, featuring traditional British pubs in South East England offering quality food, drink, and hospitality.

Edit in StackBlitz next generation editor ⚡️

Features

  • Responsive design for all devices
  • Accessibility improvements with ARIA labels
  • SEO optimizations with meta tags, sitemap, and robots.txt
  • Schema.org structured data for better search results
  • Custom 404 error page
  • Google Analytics integration

Tech Stack

Deployment to Netlify

Option 1: Deploy via Netlify UI

  1. Create a Netlify account at netlify.com
  2. Click "New site from Git"
  3. Connect to your GitHub/GitLab/Bitbucket account
  4. Select the WH Pubs repository
  5. Configure build settings:
    • Build command: npm run build
    • Publish directory: dist
  6. Click "Deploy site"

Option 2: Deploy via Netlify CLI

  1. Install Netlify CLI:

    npm install netlify-cli -g
  2. Login to Netlify:

    netlify login
  3. Initialize Netlify in your project:

    netlify init
  4. Follow the prompts to either:

    • Create a new site
    • Connect to an existing site
  5. Deploy your site:

    netlify deploy --prod

Environment Variables

Set the following environment variables in Netlify:

  • SANITY_PROJECT_ID: Your Sanity project ID
  • SANITY_DATASET: Your Sanity dataset (usually "production")
  • SANITY_TOKEN: Your Sanity API token (if needed)
  • GA_MEASUREMENT_ID: Your Google Analytics measurement ID

Local Development

  1. Clone the repository:

    git clone https://github.com/yourusername/whpubs.git
    cd whpubs
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev
  4. Open your browser and navigate to http://localhost:3000

Build for Production

npm run build

The built files will be in the dist directory.

Preview Production Build

npm run preview

Documentation

Additional documentation can be found in the docs directory:

About

Created with StackBlitz ⚡️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published