How eddyvs/static-photography-website works
This is a static photography portfolio with an Express server for serving the public site and a browser gallery implemented in JavaScript. The visible client workflow loads image metadata, builds album or photo grids, and opens a selected photo in an enlarged view with navigation and download links. The excerpts also show client-side search logic and a server-side POST search endpoint, but do not establish that they are connected. HTML and metadata file contents were not sampled, so their detailed wiring is omitted.
Main entry points: server.js Express server · code.js Gallery and search · index.html Site pages · images.json Image metadata
Components 7
Site serving
- Express server
server.js - Site pages
public/index.html - Search endpoint
server.js
Photo gallery
- Gallery and search
public/code.js - Photo viewer
public/code.js - Image metadata
public/images.json
Other components
- Visitor
Connections 6
- Visitor → Express server: requests site
server.js - Express server → Site pages: serves root
server.js - Express server → Visitor: serves public files
server.js - Visitor → Search endpoint: posts search
server.js - Gallery and search → Image metadata: fetches metadata
public/code.js - Gallery and search → Photo viewer: opens selected photo
public/code.js