Skip to content

Commit

Permalink
Local data cache
Browse files Browse the repository at this point in the history
  • Loading branch information
loleg committed Oct 29, 2023
1 parent a0cdcc5 commit 2a70060
Show file tree
Hide file tree
Showing 9 changed files with 627 additions and 284 deletions.
490 changes: 245 additions & 245 deletions data/web-diggers-alpha.csv

Large diffs are not rendered by default.

74 changes: 37 additions & 37 deletions data/web-diggers-alpha.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion webapp/index.html
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image/svg+xml" href="/clippy.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down
43 changes: 43 additions & 0 deletions webapp/public/data/CONTRIBUTE.md
@@ -0,0 +1,43 @@
How to contribute to Basel 2000
---

Use the [Baserow Form](https://baserow.schoolofdata.ch/form/pN2aVkAwBPcJb_ledBvLOWX7ueNDvWBCFlHLtV4gzrU) to share material with our project.

# Tips on finding material

Parts of this were borrowed from [WikiHow](https://www.wikihow.com/Do-Internet-Research) and elsewhere.

![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7b/MET_DP143423.jpg/640px-MET_DP143423.jpg)

## 1. Decide where to start your search

We have compiled a list of sources in our wiki. If you have other ideas, please add them here as well. They should allow us to go "back in time" and re-visit the digital landscape (the web, social media, newspapers etc.) in the year 2000.

👉🏾 https://github.com/SijmenHuizenga/web-diggers/wiki

![](https://upload.wikimedia.org/wikipedia/commons/thumb/8/8f/A_fisherman_casting_a_net_neat_Kozhikode_Beach.jpg/640px-A_fisherman_casting_a_net_neat_Kozhikode_Beach.jpg)

## 2. Look for subject-specific sources, cast a wide net

Don’t limit yourself to the first few results in the search engine. Look beyond the first page of search results to find information for your research. Most of us do not have the time and patience for more than the first page. But you can try.

![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Wings_%281927%29.webm/450px--Wings_%281927%29.webm.jpg)

## 3. Use GPT and search engines with caution

Be aware that simply because you find information online does not make it credible or authoritative. Anyone can make a webpage, and we mean *anyone*. There are tons of poor, unverified, misattributed, and just plain wrong information online. Keep calm and carry on.

![](https://upload.wikimedia.org/wikipedia/commons/3/33/Beroe_cucumis_stamp.jpg)

## 4. Choose your keywords carefully

Use specific keyword phrases to locate the most relevant information. Use alternate words or keyword phrases to locate additional research sources. For example, if you are researching "football", consider using "soccer" or "pigskin sport" or "beautiful game".

![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Bibliotekarie_-_Malm%C3%B6_1988.jpg/640px-Bibliotekarie_-_Malm%C3%B6_1988.jpg)

## 5. Ask a librarian!

Maybe you know one, maybe you can find one on social media. At least, drop us a line - we will try our best to help out.

👉🏾 https://github.com/SijmenHuizenga/web-diggers/issues

7 changes: 7 additions & 0 deletions webapp/public/data/README.md
@@ -0,0 +1,7 @@
We are using [Baserow](https://baserow.io), an open source online database, to collect sources and references for our project.

- You can contribute [using this form](https://baserow.schoolofdata.ch/form/pN2aVkAwBPcJb_ledBvLOWX7ueNDvWBCFlHLtV4gzrU)
- Baserow has an API which is [documented here](https://baserow.schoolofdata.ch/api-docs/database/160)
- The data can be downloaded in [CSV and JSON format here](https://github.com/SijmenHuizenga/web-diggers/tree/main/data)

Inspired by projects like [Confederatio Ludens](https://chludens.ch/) we also wrote a short [data collection guide](https://github.com/SijmenHuizenga/web-diggers/blob/main/data/CONTRIBUTE.md#how-to-contribute-to-basel-2000).
290 changes: 290 additions & 0 deletions webapp/public/data/web-diggers-alpha.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions webapp/src/App.tsx
Expand Up @@ -11,6 +11,7 @@ import { HelveticaPage } from "./components/HelveticaPage";
import MusicPage from "./components/MusicPage";
import Room from "./templates/Room";


function App() {
const ref =
useRef<HTMLDivElement>() as React.MutableRefObject<HTMLInputElement>;
Expand Down
3 changes: 2 additions & 1 deletion webapp/src/apiclient/apiclient.ts
@@ -1,6 +1,7 @@
import { Piece } from "./model";

export async function loadData(): Promise<Piece[]> {
const response = await fetch("http://localhost:8080/json");
const jsonurl = import.meta.env.VITE_WEBDIGGER_API || "http://localhost:8080/json";
const response = await fetch(jsonurl);
return (await response.json()) as Piece[];
}
1 change: 1 addition & 0 deletions webapp/src/main.tsx
Expand Up @@ -3,6 +3,7 @@ import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'


ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
Expand Down

0 comments on commit 2a70060

Please sign in to comment.