fix code-highlighting in "get started"

Indentation in some bullet-lists had one space too little, causing
code-highlighting to not work.

Also fixed some other minor issues.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2021-08-17 22:20:21 +02:00
parent a6e5434600
commit b724f2c44d
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
3 changed files with 44 additions and 45 deletions

View File

@ -56,8 +56,8 @@ For now, we will create the network first and attach the MySQL container at star
If you are using PowerShell then use this command. If you are using PowerShell then use this command.
```powershell ```console
docker run -d ` PS> docker run -d `
--network todo-app --network-alias mysql ` --network todo-app --network-alias mysql `
-v todo-mysql-data:/var/lib/mysql ` -v todo-mysql-data:/var/lib/mysql `
-e MYSQL_ROOT_PASSWORD=secret ` -e MYSQL_ROOT_PASSWORD=secret `
@ -80,7 +80,7 @@ For now, we will create the network first and attach the MySQL container at star
When the password prompt comes up, type in **secret**. In the MySQL shell, list the databases and verify When the password prompt comes up, type in **secret**. In the MySQL shell, list the databases and verify
you see the `todos` database. you see the `todos` database.
```cli ```console
mysql> SHOW DATABASES; mysql> SHOW DATABASES;
``` ```
@ -194,8 +194,8 @@ With all of that explained, let's start our dev-ready container!
If you are using PowerShell then use this command. If you are using PowerShell then use this command.
```powershell ```console
docker run -dp 3000:3000 ` PS> docker run -dp 3000:3000 `
-w /app -v "$(pwd):/app" ` -w /app -v "$(pwd):/app" `
--network todo-app ` --network todo-app `
-e MYSQL_HOST=mysql ` -e MYSQL_HOST=mysql `
@ -209,8 +209,7 @@ With all of that explained, let's start our dev-ready container!
2. If we look at the logs for the container (`docker logs <container-id>`), we should see a message indicating it's 2. If we look at the logs for the container (`docker logs <container-id>`), we should see a message indicating it's
using the mysql database. using the mysql database.
``` ```console
# Previous log messages omitted
$ nodemon src/index.js $ nodemon src/index.js
[nodemon] 1.19.2 [nodemon] 1.19.2
[nodemon] to restart at any time, enter `rs` [nodemon] to restart at any time, enter `rs`
@ -231,7 +230,7 @@ With all of that explained, let's start our dev-ready container!
And in the mysql shell, run the following: And in the mysql shell, run the following:
```plaintext ```console
mysql> select * from todo_items; mysql> select * from todo_items;
+--------------------------------------+--------------------+-----------+ +--------------------------------------+--------------------+-----------+
| id | name | completed | | id | name | completed |

View File

@ -93,8 +93,8 @@ For Docker Desktop installation instructions, see [Install Docker Desktop on Mac
If you've already run the command to get started with the tutorial, congratulations! If not, open a command prompt or bash window, and run the command: If you've already run the command to get started with the tutorial, congratulations! If not, open a command prompt or bash window, and run the command:
```cli ```console
docker run -d -p 80:80 docker/getting-started $ docker run -d -p 80:80 docker/getting-started
``` ```
You'll notice a few flags being used. Here's some more info on them: You'll notice a few flags being used. Here's some more info on them: