From 6b24ea713d3a52945a1f2ffa51b7618f5b568a8e Mon Sep 17 00:00:00 2001 From: Stephen Kawaguchi Date: Mon, 8 Nov 2021 22:03:52 -0500 Subject: [PATCH 1/3] docs(readme): fixed steps + docker up command --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a31ad46..5ecf272 100644 --- a/README.md +++ b/README.md @@ -24,27 +24,27 @@ cd frontend ls -la ``` -### Step 1. +### Step 2. Create a new Docker network and name it ```micro_network```: ``` docker network create micro_network ``` -### Step 2. +### Step 3. Build each of the microservice Docker container images: ``` docker-compose -f docker-compose.deploy.yml build docker images ``` -### Step 3. +### Step 4. Launch the microservice environment: ``` -docker-compose -f docker-compose.deploy.yml build +docker-compose -f docker-compose.deploy.yml up docker ps -a ``` -### Step 4. +### Step 5. Prepare each microservice mysql database: ``` for service in corder-service cproduct-service cuser-service; @@ -55,20 +55,20 @@ do done ``` -### Step 5. +### Step 6. Populate the product database: ``` curl -i -d "name=prod1&slug=prod1&image=product1.jpg&price=100" -X POST localhost:5002/api/product/create curl -i -d "name=prod2&slug=prod2&image=product2.jpg&price=200" -X POST localhost:5002/api/product/create ``` -### Step 6. +### Step 7. Using your workstations browser - navigate to the following URL and register: ``` http://localhost:5000/register ``` -### Step 7. +### Step 8. Back within your terminal, use a mysql client to confirm that a new user registration record was created: ``` mysql --host=127.0.0.1 --port=32000 --user=cloudacademy --password=pfm_2020 @@ -79,13 +79,13 @@ mysql> select * from user; mysql> exit ``` -### Step 8. +### Step 9. Using your workstations browser - login, and add products into your cart, and then finally click the checkout option ``` http://localhost:5000/login ``` -### Step 9. +### Step 10. Back within your terminal, use a mysql client to confirm that a new order has been created: ``` mysql --host=127.0.0.1 --port=32002 --user=cloudacademy --password=pfm_2020 From 482410e3771b2c684cc24d301d756e5b944c2694 Mon Sep 17 00:00:00 2001 From: Stephen Kawaguchi Date: Mon, 8 Nov 2021 22:06:50 -0500 Subject: [PATCH 2/3] docs(readme): make the docker-compose up detached --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ecf272..15ed4fb 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ docker images ### Step 4. Launch the microservice environment: ``` -docker-compose -f docker-compose.deploy.yml up +docker-compose -f docker-compose.deploy.yml -d up docker ps -a ``` From 61ab43a00455668bdd3c45062b7ab1ea45d18907 Mon Sep 17 00:00:00 2001 From: Stephen Kawaguchi Date: Mon, 8 Nov 2021 22:10:01 -0500 Subject: [PATCH 3/3] docs(readme): fix detached option placement --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 15ed4fb..942c4e5 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ docker images ### Step 4. Launch the microservice environment: ``` -docker-compose -f docker-compose.deploy.yml -d up +docker-compose -f docker-compose.deploy.yml up -d docker ps -a ```