Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dundermave/imgw

Simple project utilizing IMGW API for fetching and displaying weather data.
https://github.com/dundermave/imgw

docker docker-compose drupal drupal-10 drupal-10-module php81

Last synced: 4 days ago
JSON representation

Simple project utilizing IMGW API for fetching and displaying weather data.

Awesome Lists containing this project

README

        

### IMGW README

---

This project is built on Drupal CMS version 10 to demonstrate the integration of an external API. It showcases the retrieval and display of hydrological and meteorological data. Additionally, Docker is employed for streamlined deployment.

**Quick Start**

1. **Clone the Repository**:
Download the repository to your local machine using the following command:
```
git clone https://github.com/dundermave/imgw
```

2. **Navigate to the Directory**:
Move into the project directory:
```
cd
```

3. **Run Docker Compose**:
Use the following command to start the application with Docker Compose:
```
docker compose -f docker-compose.yml up
```

This command will build the necessary Docker images and containers. Once completed, the application will be accessible at `localhost:8080`, and PHPMyAdmin can be accessed at `localhost:8081`.

---

### Installation using commands
To run internal commands inside the container, type:
```
docker exec -it imgw-mydrupal-1 bash
```

Install Drush using the following command:
```
composer require drush/drush && composer install
```

Execute the Drupal automatic installation:
```
echo 'yes' | drush site-install standard --db-url=mysql://user:userpassword@mymariadb:3306/imgw_db --account-name=admin --account-pass=admin --site-name="My IMGW website"
```

Activate the IMGW module and rebuild the cache for the application:
```
drush en imgw -y && drush cr
```

### Automatic Installation
1. Navigate through the Drupal automatic installation, providing the following database details:
- Database name: `imgw_db`
- Database username: `user`
- Database password: `userpassword`
- Set the host to `mymariadb`.

2. **Complete Configuration**.

3. **Enable IMGW Api Module**:
Navigate to extensions and activate the IMGW Api module.

---