An open API service indexing awesome lists of open source software.

https://github.com/ifrcgo/montandon-etl


https://github.com/ifrcgo/montandon-etl

montandon

Last synced: 12 months ago
JSON representation

Awesome Lists containing this project

README

          

# Montandon ETL

## Getting Started

Clone this repository:

```bash
git clone git@github.com:IFRCGo/montandon-etl.github
cd montandon-etl
```

Update submodules
```bash
git submodule update --init --recursive
```

Create an empty .env file.
```bash
touch .env
```

Install python dependencies
```bash
# uv should be installed globally
uv sync
```

### Running

Run container using the following command:
```bash
docker compose up --build -d
```

Run migration using the following command:
```bash
docker-compose exec web python manage.py migrate
```

Create users to access admin panel using the following command:
```bash
docker-compose exec web python manage.py createsuperuser
```

### Triggering data import from external sources

```bash
# Import from GDACS
docker-compose exec web python manage.py extract_gdacs_data

# Import from GLIDE
docker-compose exec web python manage.py extract_glide_data

# Import from EMDAT
docker-compose exec web python manage.py extract_glide_data

# Import from IDU
docker-compose exec web python manage.py extract_idu_data

# Import from GIDD
docker-compose exec web python manage.py extract_gidd_data

# Import from GFD
docker-compose exec web python manage.py extract_gfd_data
```