-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make the site more ready for the big public
- Loading branch information
Wouter van der Plas2
committed
Oct 22, 2023
1 parent
65a35a6
commit 072b44a
Showing
23 changed files
with
425 additions
and
1,183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
cache: 'npm' | ||
|
||
- name: npm install | ||
run: npm install | ||
|
||
- name: npm run lint | ||
run: npm run lint | ||
|
||
- name: npm run test | ||
run: npm run test | ||
|
||
- name: npm run collect | ||
run: npm run collect | ||
|
||
- name: npm run build | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
# mcdonald's in many countries | ||
# the future dreams of this project | ||
|
||
in this document i will write down some ideas i have for this project. | ||
|
||
## the cia world factbook | ||
|
||
I am currently working on a script that would use some of the facts in the cia factbook to compare to osm. | ||
|
||
I am focusing on the power generation section, because it is the most interesting to me. | ||
|
||
its current state can be found in the `collect/countries/fromSource/factbook` file. Im stuck on how to get the data out of osm because the power generation is duplicated on for example the generator and the site. | ||
|
||
## statistics sites | ||
|
||
there are many sites offering statistics. they are often government or ngo sites. they often have a lot of data, but it is often hard to get to. i would like to make a script that can get data from these sites. | ||
|
||
<https://data.worldbank.org/> | ||
<https://cbs.nl/en-gb> | ||
|
||
## mcdonald's in many countries | ||
|
||
<https://en.wikipedia.org/wiki/List_of_countries_with_McDonald%27s_restaurants> | ||
|
||
## untapped sources | ||
|
||
<https://gruppe.schwarz/en> | ||
<https://corporate.walmart.com/about> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
# isOsmComplete | ||
|
||
This repo is published on <https://wvanderp.github.io/isOsmComplete/> | ||
How complete is OSM, really? That's the question this website sets out to answer. We compare the number of features in OpenStreetMap to the number of features in official data sources, and the results are... well, let's say we're not quite there yet. | ||
|
||
You can find the website at <https://wvanderp.github.io/isOsmComplete/> | ||
|
||
## How to contribute | ||
|
||
We are always looking for new data sources to compare to OSM. Please let us know by opening an issue or a pull request if you know of any. | ||
|
||
If you want to add a new data source, you can add a new entry in one of the files in the `collect` folder. | ||
|
||
Be aware that any changes to the `data` folder will be overwritten by the GitHub action that runs every day. You can run the collect script locally with `npm run collect` to test your changes. | ||
|
||
## How to run locally | ||
|
||
Install the dependencies with `npm install` | ||
|
||
Run `npm run app` to start the parcel development server. This will serve the website on <http://localhost:1234> | ||
|
||
You can use `npm run build` to build the website for production. This will create a `gitBuild` folder with the website. | ||
|
||
The data can be collected with `npm run collect`. This will update all the data files in the `data` folder. | ||
|
||
## Architecture | ||
|
||
The website is built with parcel and is served from GitHub pages. The data is stored in the repository and is updated with GitHub actions. | ||
|
||
This website is built with the idea that it should be a static site with no server-side components. This means all the data is collected beforehand, and the website is built with that data. This means that the website can be hosted on GitHub pages and that it can be served from a CDN. | ||
|
||
The data is collected with a node script run periodically on GitHub actions. The data is then committed to the repository, and the website is built with that data. | ||
|
||
When anything is pushed to the `main` branch, a GitHub action is triggered that builds the website and pushes it to the `gh-pages` branch. This branch is then served by GitHub pages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.