Commit Graph

33 Commits

Author SHA1 Message Date
Craig Osterhout 84c9404b88
update nodejs develop section (#17696)
Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
2023-07-06 07:28:10 -07:00
Craig Osterhout 633c6be951
update nodejs langauge guide (#17659)
Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
2023-07-05 07:16:22 -07:00
Hannes Hansen 67ff95b75a
Prevent node_modules from override via mount (#16545)
In the section `Use Compose to develop locally`, a docker-compose file is shown which mounts the app directory into the `notes` container to be able to change the code without rebuilding the image. Unfortunately, the node_modules directory which was created during the build will be overridden as the whole working directory /app gets mounted. Therefore, this directory needs to be secured by adding it to the volumes.
2023-01-20 22:03:09 +00:00
Allie Sadler f956ab6552
Improve alt text on images (#16484) 2023-01-10 16:28:46 +00:00
Arinze Chianumba 31bdfddbc4
fixes "Command 'docker-compose' not found" error.
This commit fixes the error thrown due to a typo in the command `docker-compose -f docker-compose.dev.yml up --build`.
The correct command is `docker compose -f docker-compose.dev.yml up --build` without the hyphen between 'docker' and 'compose' in the command sequence
2022-11-04 15:38:07 +01:00
Craig Osterhout ad614f1d2c
[Issue 12622] Node.js guide - update example code (#15922)
* update server.js code
2022-10-20 13:32:12 -07:00
ming 50d76362e8
Update develop.md (#14315)
* Update develop.md

this makes it clear that it is the "volumes" that can sync local code changes to that in the container.

* Update language/nodejs/develop.md

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2022-09-30 12:40:59 +01:00
CrazyMax 561118ec5b
rename docs repository
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-09-29 11:07:53 +02:00
CrazyMax 2482f8ce04
Remove unneeded <br> HTML tags
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-14 19:54:47 +02:00
Nicholas Rasi a3b576c0a8
Fix Small Typo 2022-03-19 18:38:49 +01:00
Usha Mandya 1c402e7fbf
Merge pull request #14272 from ValeriiMakhniuk/patch-1
add link to volumes.md docs
2022-02-25 11:04:47 +00:00
Usha Mandya 9c63f89aac
Update language/nodejs/develop.md 2022-02-25 11:01:06 +00:00
OGUNSOLA USMAN ADEBAYO f5ed385f5b
Update develop.md (#14025)
* Update develop.md

- provided more clarity to the structure of the mongo database connection string used as CONNECTIONSTRING environment variable to run the docker image in the sample node.js project.

* Update develop.md
2022-02-24 14:15:46 +00:00
Valerii Makhniuk 6617ca3c95
add link to volumes.md docs 2022-02-16 20:32:31 +03:00
HARIHARAN E 65ddb87fd0
modify yoda_notes to notes at line 85 2022-01-21 12:49:03 +05:30
vuurball a93c040494
Update develop.md
typo fix
2022-01-16 14:30:06 +02:00
Sebastiaan van Stijn fbd8c365c8
language/nodejs: un-wrap JSON in example to allow copying
The JSON string was wrapped, causing the highlighter to consider it "output",
which cannot be selected/copied in "console" blocks.

This unwraps the JSON so that it can be copied.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-09-02 16:56:29 +02:00
kurama f4655fb89e
fix: typo (#13348)
* fix: typo

* Minor style updates

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2021-08-16 11:57:31 +01:00
Sebastiaan van Stijn 60bb48a6a1
language/nodejs: use "console" for shell examples
This allows for easier copying of the commands, without selecting the
prompt.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-06 17:19:59 +02:00
DJ Adams 68001ae96c
be explicit about having a breakpoint-able line 2021-07-27 10:37:00 +01:00
Sebastiaan van Stijn a463d3290f
use primary-btn instead of outline-btn
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-04-13 16:34:01 +02:00
Usha Mandya 4bf9708018
Merge pull request #12355 from david-szabo97/patch-2
Node.js guide: Fix syntax highlighting
2021-03-05 14:31:12 +00:00
Dávid Szabó 5add977c71
Fix syntax highlighting 2021-02-18 22:23:46 +01:00
Dávid Szabó a5c80cc3ee
Fix volume mismatch 2021-02-18 22:10:46 +01:00
Usha Mandya 62fb3155ca
Merge pull request #12218 from matt-continuousdelta/patch-2
Clarify instructions
2021-02-17 14:05:37 +00:00
Matthew McClure 1be59f2fcc
Update develop.md
* Eliminate unnecessary URL path parts.
* Preserve mock endpoints because it's unnecessary to remove them.
2021-02-01 13:33:38 -05:00
Matthew McClure 6bfb54843c
Clarify instructions
* Eliminate unnecessary port change.
* Clarify code change and breakpoint location.
2021-01-31 19:31:41 -05:00
Usha Mandya 4b828eeaed Update links and remove extra spaces
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-01-29 17:09:03 +00:00
Usha Mandya 5ec3a64fa2
Minor update 2021-01-25 19:21:22 +00:00
Norah H e7085f77be
Update develop.md
Remove duplicated instructions in the nodemon installation step and add an instruction for npm install command.
2021-01-23 09:52:46 +09:00
Usha Mandya 92b50927ea Add steps to start app in debug mode
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-01-19 10:50:28 +00:00
Usha Mandya d9fa2c32de Add missing steps on editing the json file
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-01-18 15:55:23 +00:00
Usha Mandya ba395bed07 Add reference architecture docs
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-01-18 12:07:55 +00:00