https://github.com/franloza/contratosdemadrid
This project is an interactive web application for exploring and analyzing public contracts in the Community of Madrid. It allows users to search for companies and view their contract details, aiming to promote transparency and facilitate access to public information.
https://github.com/franloza/contratosdemadrid
data-visualization duckdb evidence open-data
Last synced: 10 months ago
JSON representation
This project is an interactive web application for exploring and analyzing public contracts in the Community of Madrid. It allows users to search for companies and view their contract details, aiming to promote transparency and facilitate access to public information.
- Host: GitHub
- URL: https://github.com/franloza/contratosdemadrid
- Owner: franloza
- License: mit
- Created: 2025-05-28T16:09:34.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-06T16:04:34.000Z (about 1 year ago)
- Last Synced: 2025-06-06T17:21:36.537Z (about 1 year ago)
- Topics: data-visualization, duckdb, evidence, open-data
- Language: Python
- Homepage: https://contratosdemadrid.franloza.com
- Size: 202 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Contratos de Madrid
This project provides scripts to download and process contract data from the Comunidad de Madrid public contracts portal.
You can view the live application at [contratosdemadrid.franloza.com](https://contratosdemadrid.franloza.com).
## Setup
1. **Clone the repository (if you haven't already):**
```bash
git clone
cd contratosdemadrid
```
2. **Install dependencies and set up the environment:**
This command will create a virtual environment, install Python packages, and download necessary browser binaries.
```bash
make install
```
## Extract Data
Download contract data for a specified date range. Dates must be in `YYYY-MM-DD` format.
You can optionally specify a delay in seconds between downloads.
```bash
make extract START_DATE=YYYY-MM-DD END_DATE=YYYY-MM-DD [DELAY_SECONDS=N]
```
**Example:**
```bash
make extract START_DATE=2023-01-01 END_DATE=2023-03-31 DELAY_SECONDS=5
```
## Transform Data
Process the extracted data to create refined data models.
```bash
make transform
```
## Init Application
The application is an Evidence project located in `src/app/`. To run it:
1. **Navigate to the app directory:**
```bash
cd src/app
```
2. **Install npm dependencies:**
```bash
npm install
```
3. **Build data sources for Evidence:**
```bash
npm run sources
```
4. **Run the development server:**
```bash
npm run dev
```
Open your browser to the address indicated in the terminal (usually `http://localhost:3000`).