Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️Bootstrap frontend #257

Merged
merged 4 commits into from
Oct 14, 2024
Merged

♻️Bootstrap frontend #257

merged 4 commits into from
Oct 14, 2024

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Sep 16, 2024

Purpose

We were providing a frontend development container to the developers, but it was not working properly.
Problem of hot reload was present for Windows and Linux users.
We stop to provide this development container and we will provide a container connected to the build of the frontend.
You can still access the frontend after bootstrap on the "localhost:3000", but if you want to develop you will have to install the frontend dependencies locally and run the frontend in development mode.
This will be more efficient and will avoid the problem of hot reload, and right on folder access.

Proposal

  • 🔧(docker) add missing media url env
  • 🧑‍💻(project) improve frontend bootstrap
  • ✅(CI) refacto test-e2e
  • 🚨(docker) fix docker warning about casing

@AntoLC AntoLC self-assigned this Sep 16, 2024
@AntoLC AntoLC force-pushed the refacto/bootstrap-frontend branch 2 times, most recently from c80e7f3 to 6cac523 Compare September 16, 2024 13:33
@AntoLC AntoLC requested review from sampaccoud and removed request for sampaccoud September 16, 2024 13:59
@AntoLC AntoLC force-pushed the refacto/bootstrap-frontend branch from 6cac523 to eac3b9c Compare September 16, 2024 14:40
@AntoLC AntoLC requested a review from sampaccoud September 16, 2024 14:50
@AntoLC AntoLC force-pushed the refacto/bootstrap-frontend branch from eac3b9c to 1539a24 Compare September 16, 2024 15:09
@AntoLC AntoLC requested a review from PanchoutNathan October 7, 2024 08:03
@AntoLC AntoLC force-pushed the refacto/bootstrap-frontend branch from 1539a24 to 1188566 Compare October 14, 2024 19:41
The env MEDIA_URL was missing in the frontend
Dockerfile. It is not necessary in our
running environment (staging / preprod ...) but it
is necessary if we want to run the frontend with
a different media url.
SW_DEACTIVATED was missing as well, we need to
deactivate the service worker in the frontend when
we test with Playwright.
We were providing a frontend development container
to the developers, but it was not working properly.
Problem of hot reload was present for Windows and
Linux users.
We stop to provide this development container and
we will provide a container connected to the build
of the frontend.
You can still access the frontend after bootstrap
on the "localhost:3000", but if you want to develop
you will have to install the frontend dependencies
localy and run the frontend in development mode.
This will be more efficient and will avoid the
problem of hot reload, and right on folder access.
With the new container available, we can simplify
the workflow by removing the build step
and using the container directly.
When we build the docker image, we get a warning
about the casing in the Dockerfile. This commit
fixes the casing in the Dockerfile.
@AntoLC AntoLC force-pushed the refacto/bootstrap-frontend branch from 1188566 to 36f524f Compare October 14, 2024 20:12
@AntoLC AntoLC merged commit 97d00b6 into main Oct 14, 2024
16 checks passed
@AntoLC AntoLC deleted the refacto/bootstrap-frontend branch October 14, 2024 20:20
@AntoLC AntoLC mentioned this pull request Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant