Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c3fd9d8

Browse files
committed
added youtube demo link
1 parent 5688e15 commit c3fd9d8

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

‎README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# getting started with docker-mysql-nodejs
22

3-
Running a nodejs application with mysql database as microservices using docker
4-
using microservice architecture
3+
Running a nodejs application with mysql database using docker and microservice architecture
54

6-
### our end goal
5+
### Our end goal
76

87
- Launch mysql server in a docker container.
98
- Launch our simple node app in a separate container.
109
- Link these two containers and test our integrated mysql-nodejs app.
1110

12-
### prerequisite
11+
### Youtube link-
12+
13+
Watch this tutorial at https://youtu.be/tIbMSqTEpfY
14+
15+
### Prerequisite
1316

1417
- must have docker set up and running on your system
1518

@@ -69,7 +72,7 @@ We are also naming our container as test-mysql-microservice `--name`
6972
14. We have successfully launched a mysql container
7073
7174
72-
### connecting to newly launched mysql container from host (optional)
75+
### Connecting to newly launched mysql container from host (optional)
7376
7477
To verify that our test-mysql-microservice container is up and running, we'll connect to it.
7578
Follow below steps if you have mysql (mysql-client) installed on your system.
@@ -144,12 +147,12 @@ Note that we are inside nodejs-microservice directory. `test-nodejs` would be na
144147
* `--link test-mysql-microservice:db` link to the container named test-mysql-microservice and refer to it as db
145148
* `--name` naming our container as test-nodejs-microservice
146149
147-
10. How to know your MYSQL_HOST-
150+
10. How to know your MYSQL_HOST-
148151
Note that I am using `172.17.0.2` ip-address as MYSQL_HOST. This is the IpAddress of our test-mysql-microservice container.
149152
You must replace this value to your container's ipAddress. Use `docker inspect test-mysql-microservice | grep IPAddress`
150153
151154
152-
### testing our complete app
155+
### Testing our complete app
153156
154157
If everything is good so far then congratulations :smile: You have a complete app running with two microservices. To test this you can use CURL command from your host machine
155158
@@ -162,7 +165,7 @@ Here 192.168.43.147 is my host IpAddress `ifconfig | grep inet`
162165
163166
4. Again fetch all students to see updated results `curl -X POST 192.168.43.147:4000/get-students`
164167
165-
5. Modify sorce code of nodejs app, build image, run container and test again.
168+
5. Modify source code of nodejs app, build image, run container and test again.
166169
167170
### Queries/Comments
168171

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /