-
Notifications
You must be signed in to change notification settings - Fork 6
More How To guides
Here you can find some How-to's.
Index of How-to Guides
- How to connect to containers
- How to work with containers
- How to enable testing with PHPUnit in the Drupal backend
- How to check API connections using Postman
- How to work with GraphQL Apollo Client
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:
Then you can connect to containerse using the console way too:
- Connecting to the
frontend_react
container by prompt: Thefrontend_react
container is based in Alpine Linux so is using/bin/sh
instead ofbin/bash
:
$ ddev ssh -s frontend_react
$ docker exec -it frontend_react /bin/sh
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
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/
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:
You will get the response!
You can review the Summer House - Postman Team / Workspace / Collections and get all the available examples for your testing: