Skip to content

hzswdef/DrupalLearningProject

Repository files navigation

News Drupal project "Pulses PRO"

This project uses Traefik v2.4, network name: traefik

Development

1. Create links

for local dev:

ln -s docker-compose.local.yml docker-compose.yml
ln -s .env-local .env

for dev site at the server:

ln -s docker-compose.development.yml docker-compose.yml
ln -s .env-development .env

for live:

ln -s docker-compose.live.yml docker-compose.yml
ln -s .env-live .env

2- Start project

Run in the root of project

npm i

Up the containers

docker-compose up -d

Install all with composer (use provided by container)

docker-compose exec php composer install

Init database with local file (notice the -T option, remove the old database with drush sql-drop if it needed)

docker-compose exec -T php drush sql-cli < some-local-file.sql

Deploy the project

docker-compose exec php drush deploy

For the local environment open browser on http://DOMAIN.docker.localhost You caf find the correct domain in the PROJECT_BASE_URL parameter of your .env file

3 Get login link

docker-compose exec php drush uli

If the default admin was disabled try

docker-compose exec php drush uli

Search

The search popup code is in /clients/search.

The search is a React app that is deployed as a drupal plugin module. The source code of the search is on the folder (clients/search). After doing any change to the JS code the following steps must be done...

npm run dev

This command will prepare the react app for deployment, and copy the build project into drupal.

Get a quote page

The get a quote page popup code is in /clients/get_a_quote_page.

The get a quote page is a React app that is deployed as a drupal plugin module. The source code of the search is on the folder (clients/get_a_quote_page). After doing any change to the JS code the following steps must be done...

npm run prod_v2

This command will prepare the react app for deployment, and copy the build project into drupal.

Particle theme

The particle theme is located in the drupal/themes/custom/particle

The command to build theme

npm run build:drupal

Other folders in clients

The favorites_page and get_a_quote are deprecated React Apps (they were replaced by the Get a Quote Page and new quote workflow)

About

My first ever Drupal project.

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •