https://github.com/norgeitall/norgeitall
Dashbord for Norge
https://github.com/norgeitall/norgeitall
analytics echarts evidence-dev markdown sql svelte sveltekit
Last synced: about 2 months ago
JSON representation
Dashbord for Norge
- Host: GitHub
- URL: https://github.com/norgeitall/norgeitall
- Owner: norgeitall
- Created: 2025-02-19T16:48:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-25T17:48:25.000Z (over 1 year ago)
- Last Synced: 2025-02-25T18:40:43.382Z (over 1 year ago)
- Topics: analytics, echarts, evidence-dev, markdown, sql, svelte, sveltekit
- Language: JavaScript
- Homepage: https://www.norgeitall.no
- Size: 1.13 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/norgeitall/norgeitall/actions) [](https://app.netlify.com/sites/norgeitall/deploys)
# Norge i tall
_Norge i tall_ is built on [Evidence - Business Intelligence as Code](https://evidence.dev/). In addition, we use Python to build data sources.
## How it works
[`main.py`](main.py) fetches data from APIs and websites such as OECD’s and Norges Bank’s. It then stores this data as CSV files in [`sources/oecd/`](sources/oecd), [`sources/norges_bank`](sources/norges_bank), and so on.
Then, Evidence makes these CSV files available to query with SQL, and builds the website based on Markdown files.
## Development environment setup
### Prerequisites
1. Python package and project manager [uv](https://docs.astral.sh/uv/)
2. JavaScript runtime environment [Bun](https://bun.com/)
### Setup
```bash
git clone git@github.com:norgeitall/norgeitall.git # Clone the repository
cd norgeitall # Navigate into the project folder
uv sync # Install Python dependencies
bun install --frozen-lockfile # Install Node.js dependencies
source .venv/bin/activate # Activate Python virtual environment
pre-commit install # Install pre-commit hooks
pre-commit run --all-files # Run automatic quality checks
./main.py # Fetch data and store in CSV files
bun run sources # Extract data from sources
bun run dev # Start development server
```
[http://localhost:3000/](http://localhost:3000/) should now be opened in your default browser.