A visually appealing, shareable Pokémon diary, allowing a user to register on a website, add their “friendcode” and then add an entry for every pokemon they capture.
A Drupal project.
To create a visually appealing, shareable Pokémon diary, allowing a user to register on a website, add their “friendcode” and then add an entry for every pokemon they capture.
Requirements:
For installation guides for the above mentioned, please refer to these documentations:
Installation
Assuming we completed the requirements above:
ddev start
.ddev composer install
.ddev start
to start DDEV services, link will be generated to access the site on your local machine.Getting Started
First setup on your local machine:
ddev snapshot restore
to sync with the base Drupal Project configuration.ddev restart
to ensure the configurations are applied properly .and restart services.ddev composer install
.ddev drush deploy
to code deployment.Routine development
develop
via running git pull origin develop
to ensure your branches is up to date. Note: Do this before creating branches, Before committing and pushing branches, or when Important commits are pushed on develop branch.
ddev drush deploy
.Merging codes to develop
git push
on your feature branches, create a pull request ticket on repository to have your codes reviewed.Syncing Database Between Platform.sh and Local Environment
Installing platformsh cli
curl -sS https://platform.sh/cli/installer | php
platform login
enter your created credentials hereplatform environment:info
check if you are in developpaltform list
platform ssh
you should be inside the drupal root project.drush status
Pulling database changes from Platform.sh
git checkout develop
git pull origin develop
env | grep PLATFORM
if not then ask the devs for the command for exporting thisddev restart
ddev pull platform --skip-files --skip-confirmation --skip-import -y
ddev import-db --file=.ddev/.downloads/db.sql.gz
ddev drush deploy
Pushing local database changes to Platform.sh
git checkout develop
git pull origin develop
ddev push platform --skip-files --skip-confirmation --skip-import -y
Thank you for taking time to read this documentation. - CUPA - Mario Collaborators