Skip to content

More How To guides

David Rodriguez edited this page Jul 29, 2022 · 17 revisions

Here you can find some How-to's.


Index of How-to Guides


How to connect to containers

Firstly, we have a graphic interface for users, if you prefer a "visual" way to admin connections to the containers. You can use Portainer, fully deployed in Summer House. Enter the website in:

http://summerhouse.ddev.site:9001
https://summerhouse.ddev.site:8001

And try to connect to containers:

Selection_452

Then you can connect to containerse using the console way too:

  • Connecting to the frontend_react container by prompt: The frontend_react container is based in Alpine Linux so is using /bin/sh instead of bin/bash:
$ ddev ssh -s frontend_react 
$ docker exec -it frontend_react /bin/sh

How to work with containers

As Summer House is based on DDEV, you can use the DDEV command - subcommand forms for interacting with containers. For instance:

  • Getting info and installing new dependencies in frontend_react container from Host:
$ ddev exec -s frontend_react yarn version
    yarn version v1.22.18
    info Current version: 0.1.0
    Done in 4.54s.
  • Installing / Uninstalling dependencies in frontend_react container, from Host:
$ ddev exec -s frontend_react npm install @material-ui/icons
$ ddev exec -s frontend_react yarn add @mui/material @mui/icons-material @material-ui/core
$ ddev exec -s frontend_react yarn add axios
$ ddev exec -s frontend_react yarn remove react-native

How to enable testing with PHPUnit in the Drupal backend

How to run Code Sniffing in the Drupal backend

You can run specifically codestyling checks from the host, using ddev subcommands:

summerhouse$ ddev exec phpcs /var/www/html/backend_drupal/modules/contrib/admin_toolbar/

How to check API connections using Postman

You can check API connections using Postman, the API platform for building and using APIs. Install in your system doing: $ sudo snap install postman and create a new user account. You can test GraphQL connections from Postman just like a simple POST request, using the body field and selecting GraphQL option. Then paste your GraphQL query as body content and launch the request:

davidjguru_summerhouse_postman_for_graphql

You will get the response!

You can review the Summer House - Postman Team / Workspace / Collections and get all the available examples for your testing:

How to work with GraphQL // Apollo client