Thank you for your interest in contributing to this project! This guide will walk you through the process of cloning the repository and updating the events data.
First, clone the repository to your local machine:
git clone https://github.com/404seannotfound/seanwebsite.git
cd seanwebsite
The events are stored in events/events.json. Each event has the following structure:
{
"name": "Event Name",
"date": "YYYY-MM-DD/YYYY-MM-DD", // Single date or date range
"location": "City, State/Country",
"lat": 0.0, // Latitude coordinate
"lng": 0.0, // Longitude coordinate
"ticketUrl": "https://ticket-url.com",
"status": "normal" // Optional: can be "normal", "suspect_date", or "suspect_date_broken"
}
lat
and lng
fieldsTo update or add an event:
events/events.json
in your preferred text editorTo test your changes locally, you'll need to set up a simple web server because browsers block the fetch
API when loading files directly from the filesystem. Here are a few easy ways to do this:
If you have Python installed:
# For Python 3
python -m http.server 8000
# For Python 2
python -m SimpleHTTPServer 8000
Then open http://localhost:8000/events/events.html
in your browser.
If you have Node.js installed:
# Install http-server globally
npm install -g http-server
# Run the server
http-server
Then open http://localhost:8080/events/events.html
in your browser.
If you're using Visual Studio Code:
events/events.html
Once your server is running, verify that:
Since you don't have direct write access to the repository, you'll need to submit your changes through a pull request. Here's how:
git clone https://github.com/YOUR_USERNAME/seanwebsite.git
cd seanwebsite
events/events.json
filegit add events/events.json
git commit -m "Update events: [describe your changes]"
git push origin main
If you run into any issues or have questions:
Thank you for helping improve this project!