The Daily Bruin's print archive.
Note: this project is NOT future-proofed and needs to be updated annually (preferrably don't wait until April like me 😚✌️). At the beginning of each year, go through the index.html and script.js files, search for comments starting with "UPDATE:", and make changes accordingly.
This is a static website that can be run locally using a simple HTTP server. Here are a few options:
# Python 3
python3 -m http.server 8000
# Python 2
python -m SimpleHTTPServer 8000Then open http://localhost:8000 in your browser.
# Install http-server globally (if not already installed)
npm install -g http-server
# Run the server
http-server -p 8000Then open http://localhost:8000 in your browser.
This is a static site (no build step). Deploy the folder as-is.
- Push the repo to GitHub (or GitLab/Bitbucket).
- Go to netlify.com → Add new site → Import an existing project.
- Connect your Git provider and select the
archiverepo. - Build settings: leave Build command empty; set Publish directory to
.(root). - Deploy. Netlify will serve
index.htmlat the root.
Drag-and-drop: You can also go to app.netlify.com/drop and drag the archive folder to deploy without Git.
- Install the CLI:
npm i -g vercel - In the project folder:
verceland follow the prompts (root directory = current folder). - Or connect the repo at vercel.com and deploy; no build command needed.
- Push the repo to GitHub.
- Settings → Pages → Source: Deploy from a branch.
- Branch:
main(ormaster), folder: / (root). Save. - The site will be at
https://<username>.github.io/<repo-name>/. - If the repo is named
archive, set the site’s base URL in your app if you use relative links (this project uses relative links, so they work as-is under a subpath).
- Update the code for the new year’s papers (search for
UPDATE:inindex.htmlandscript.js). - Increment maximum ids by 1 where indicated (see previous commits for reference).
- After deploying, confirm the site loads and that date/year ranges work as expected.