Skip to content

DEVlimited/virtual-fairgrounds-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Virtual Fairgrounds - Browser Version

Head to the Virtual Fairgrounds

At the heart of the Virtual Fairgrounds project lies a profound commitment to preserving the essence of Oklahoma City's historic Fairgrounds District, an area once teeming with life and culture, now remembered only through scattered narratives and memories. This initiative leverages immersive virtual reality technology platforms designed by Drone's Eye View (DEV) to resurrect a neighborhood once vibrant with culture and community, but lost to the tides of urban renewal. The project, inspired by the visionary guidance of Librarian Judith Matthews, is not merely a technical feat; it is a heartfelt tribute to an Oklahoma City treasure tragically lost. By weaving archival recordings and oral histories into the fabric of the virtual environment, DEV aims to offer an immersive educational experience that honors the district's legacy. The urgency of this mission is underscored by the dwindling number of individuals who experienced Deep Deuce firsthand, making this project a crucial bridge between past and present generations.

If you are looking for the VR Virtual Fairgrounds, here is its repo.

How to Add Historical Images and New Locations

This guide will walk you through adding new historical images and locations to the Virtual Fairgrounds project. No programming knowledge required!

Quick Overview

The Virtual Fairgrounds displays historical images when you interact with different locations (like the Theater or Bill's Cleaners). These images are organized in folders and listed in a special file that tells the program what to show.

πŸ–ΌοΈ Adding New Images to Existing Locations

Step 1: Prepare Your Images

Before adding images to the project:

  1. Name your files clearly - Use simple names like theater-front-1955.jpg instead of IMG_12345.jpg
    • βœ… Good: bills-cleaners-interior.jpg
    • ❌ Bad: DSC_0042(1).JPG
  2. Avoid special characters - Don't use symbols like #, &, @, or spaces in filenames
    • βœ… Good: main-street-view.jpg
    • ❌ Bad: main street & bath.jpg
  3. Keep file sizes reasonable - Images should be under 5MB (resize in any photo app if needed)

Supported image types:

  • JPG or JPEG (best for photographs)
  • PNG (for images with text or graphics)
  • GIF (for simple animations)
  • TIF or TIFF (historical archives - these load slower)

Step 2: Find the Right Folder

Navigate to your project folder, then find these locations:

virtual-fairgrounds-web/
  └── public/
      └── images/
          β”œβ”€β”€ eastside/     ← Theater images go here
          β”œβ”€β”€ 718/          ← Bill's Cleaners images go here
          β”œβ”€β”€ 714/          ← Domino Parlor images go here
          └── records/      ← Record Shop images go here

Using GitHub.com (easier for beginners):

  1. Go to your repository on GitHub.com
  2. Click on public folder
  3. Click on images folder
  4. Click on the location folder (like eastside)
  5. Click "Upload files" button
  6. Drag your images or click "choose your files"

Step 3: Update the Image List

Now we need to tell the website about your new images.

Using GitHub.com:

  1. Navigate back to the main repository page
  2. Go to public β†’ js β†’ click on imageManifest.json
  3. Click the pencil icon (✏️) to edit
  4. Find your location section (search for "theater", "cleaners", etc.)
  5. Add your image information

What to add - Copy this template:

{
  "src": "../public/images/FOLDERNAME/YOUR-IMAGE.jpg",
  "alt": "Brief description of what's in the image",
  "caption": "Caption that appears below the image when viewing"
},

Real example (copy and modify this):

{
  "src": "../public/images/eastside/theater-marquee-1955.jpg",
  "alt": "East Side Theater marquee showing movie titles",
  "caption": "The marquee advertises 'Rebel Without a Cause' - October 1955"
},

Where exactly to add it: Look for your location and add the new image after the last image but before the closing ]:

"images": [
  {
    "src": "../public/images/eastside/existing-image.jpg",
    "alt": "An existing image",
    "caption": "Existing caption"
  },
  {
    "src": "../public/images/eastside/YOUR-NEW-IMAGE.jpg",
    "alt": "Your description",
    "caption": "Your caption"
  }
]

⚠️ Common mistakes to avoid:

  • Forgetting the comma - Every } needs a comma after it, EXCEPT the very last one
  • Wrong quotes - Use straight quotes " (hold Shift and press the key next to Enter)
  • Typos in the path - The filename must match EXACTLY (including capital letters)

Step 4: Save and Check Your Work

  1. Scroll to the bottom of the page
  2. In "Commit changes" box, type: "Added new images for [location name]"
  3. Click "Commit changes" button
  4. Wait 5-10 minutes for the website to update
  5. Visit the live site and test your images!

πŸ“ Adding a Completely New Location

This is more complex and requires help from a developer for the final step.

Step 1: Create Your Location Folder

Using GitHub.com:

  1. Go to public β†’ images
  2. Click "Create new file"
  3. Type: yourlocationname/placeholder.txt (this creates a folder)
  4. Click "Commit new file"
  5. Go back and upload your images to this new folder

Step 2: Add Your Location Information

Edit imageManifest.json and add this template at the end (but before the final ]):

,
{
  "id": "yourlocationid",
  "title": "Name That Appears in Popup",
  "description": "One sentence about this location",
  "html": "<p><strong>Additional historical details here</strong></p>",
  "images": [
    {
      "src": "../public/images/yourfolder/first-image.jpg",
      "alt": "Description of image",
      "caption": "Historical caption with date"
    }
  ]
}

Step 3: Contact Development Team

New locations need to be made interactive in the 3D world. Email the team with:

  • Your new location ID
  • Description of where it should be in the virtual neighborhood
  • Any historical details about its original location

πŸ” How to Check If It's Working

The JSON Checker:

  1. Copy all the content from imageManifest.json
  2. Go to https://jsonlint.com/
  3. Paste your content and click "Validate JSON"
  4. If it shows errors, it will tell you which line has a problem

Common Error Messages and Fixes:

What You See What It Means How to Fix
"Expecting comma" Missing comma after a } Add a comma
"Unexpected token" Wrong type of quotes or extra character Check your quotes are straight "
"Expecting string" Missing quotes around text Add quotes around your text

πŸ†˜ When to Ask for Help

Contact the development team if:

  • The website shows an error page
  • Your images won't appear after 30 minutes
  • You need to add a new interactive location
  • You're unsure about any step

πŸ“ Quick Reference Card

File naming rules:

  • No spaces (use hyphens: bill-store-front.jpg)
  • No special characters (#&@!*)
  • Keep it short and descriptive

Image list format (the pattern to follow):

comma β†’ {
quote β†’ "src": "../public/images/folder/filename.jpg" ← comma
quote β†’ "alt": "What the image shows" ← comma
quote β†’ "caption": "Historical description and date" ← quote
} ← comma (except if it's the last one)

Testing checklist:

  • File names have no spaces or special characters
  • Images uploaded to correct folder
  • Image paths in JSON match exactly
  • All commas in the right places
  • Waited 10 minutes after saving
  • Cleared browser cache (Ctrl+F5 or Cmd+Shift+R)

πŸ’‘ Pro Tips for Beginners

  1. Make a backup first - Before editing, copy the entire contents of imageManifest.json to a text file on your computer
  2. Add one image at a time - It's easier to find mistakes this way
  3. Use the browser's incognito/private mode - This ensures you see the latest version
  4. Take screenshots - If something goes wrong, screenshots help developers help you

Remember: Everyone makes mistakes when learning! The development team is here to help.

Classes integrated

This repo has been used in various classes at Oklahoma City University to teach students real world software concepts while putting work into the great community project sponsored by the Metropolitan Library System.

Software Engineering

This repo will be used to teach software engineering practices to undergraduate students enrolled in a Introduction to Software Engineering course at Oklahoma City University.

Undergraduate Internship

With resources provided by the Metropolitan Library System and management provided by DEV undergraduate internships to further this project have official started in the Summer of 2025!

Undergraduate Interns

About

A recreation of the Fairgrounds Neighborhood of Oklahoma City circa 1950 right in your browser!

Resources

Stars

Watchers

Forks

Contributors 6