This repository contains the Big Red Barn website built with Vite and React.
This project is configured to automatically deploy to GitHub Pages using GitHub Actions.
-
The GitHub Actions workflow (
.github/workflows/deploy.yml) is triggered when:- Changes are pushed to the
mainbranch - The workflow is manually triggered from the Actions tab
- Changes are pushed to the
-
The workflow:
- Builds the React application
- Copies the CNAME file for custom domain configuration
- Deploys the built files to GitHub Pages
To set up GitHub Pages for this repository:
- Go to your repository settings
- Navigate to "Pages" in the sidebar
- Under "Build and deployment", select:
- Source: "GitHub Actions"
- Your site will be deployed automatically when the workflow runs
This repository includes a CNAME file for custom domain configuration. If you want to use a different domain:
- Update the CNAME file with your domain
- Configure your domain's DNS settings to point to GitHub Pages
This repository includes a cleanup script to remove unnecessary files from the base directory:
# Make the script executable
chmod +x cleanup.sh
# Run the cleanup script
./cleanup.shThis will remove:
- Old HTML files (index.html, history.html)
- CSS files (bootstrap.min.css)
- Duplicate asset directories (icons/, images/)
To run the project locally:
# Navigate to the project directory
cd big-red-barn-react
# Install dependencies
npm install
# Start the development server
npm run devTo build the project locally:
# Navigate to the project directory
cd big-red-barn-react
# Build the project
npm run build
# Preview the build
npm run preview