Skip to content

FaulveCorps/ShareSTI

Repository files navigation

ShareSTI

ShareSTI is a lightweight campus lending app built with static HTML/CSS, jQuery, and a PHP JSON-file backend.

What this repository contains

  • login.html - sign in and sign up flow
  • index.html - lender view for posting and managing lendable items
  • borrower.html - borrower view for requesting and borrowing items
  • shared.js - shared frontend logic and API helpers
  • api.php - PHP backend using JSON files in data/
  • styles.css - application styling
  • .htaccess - deployment rules for HTTPS and cache behavior

Runtime data

The data/ directory is used as runtime storage for:

  • users
  • sessions
  • items
  • requests
  • borrow requests
  • notifications
  • history

These files are intentionally committed in a clean state to avoid storing personal data or active session tokens in source control.

Privacy and cleanup notes

This repository was cleaned up to remove stale or unused files and to scrub committed identifying information from runtime JSON files.

  • Removed the unused Node backend file server.js
  • Removed the broken Visual Studio solution file ShareSTI.sln
  • Cleared committed JSON runtime data in data/
  • Added ignore rules for future dumps/ folders and temporary clutter

For more detail, see docs/privacy-and-cleanup.md.

Running the app

Serve the repository with a PHP-capable web server and make sure the data/ directory is writable.

Open login.html in the browser through that server, not directly from the filesystem.

Resetting local runtime data

The backend supports a reset endpoint for local development:

  • api.php?reset=confirm

That clears all JSON records in data/.