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

Update develop-with-containers.md #21985

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion content/get-started/introduction/develop-with-containers.md
Original file line number Diff line number Diff line change
@@ -75,9 +75,14 @@ With this environment, you as the developer don’t need to install or configure

With this environment up and running, you’re ready to make a few changes to the application and see how Docker helps provide a fast feedback loop.

### Note
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry this was supposed to clarify the importance on 2. Once you have the project, start the development environment using Docker Compose.
Cannot edit anymore XC sorry.

Docker won't auto-detect code changes, it is not a live-reloading environment. So, after doing the changes in any of the files, you might:
1. Run `docker-compose up --build` in a terminal/console inside your docker repo
2. Use [Compose Watch](https://docs.docker.com/compose/how-tos/file-watch/)

### Change the greeting

The greeting at the top of the page is populated by an API call at `/api/greeting`. Currently, it always returns "Hello world!". You’ll now modify it to return one of three randomized messages (that you'll get to choose).
The greeting at the top of the page is populated by an API call at `backend/src/api/greeting`. Currently, it always returns "Hello world!". You’ll now modify it to return one of three randomized messages (that you'll get to choose).

1. Open the `backend/src/routes/getGreeting.js` file in a text editor. This file provides the handler for the API endpoint.