Skip to content

Commit 4fd7094

Browse files
authored
Merge pull request #3 from gunish-dt/gunishReadme
Added Video URL
2 parents 70a6a33 + e7b56de commit 4fd7094

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

README.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,54 @@
11
# getting-started-nodejs
22

3+
[![Demo Video](https://img.youtube.com/vi/9u-pKiWV-tM/0.jpg)](https://www.youtube.com/watch?v=9u-pKiWV-tM&t=2s)
4+
35
This application uses the `node` container obtained from the [Docker Hub](https://hub.docker.com/_/node/)
46

57
## Setup
8+
69
Clone this repo and cd into the directory:
710

811
```
912
git clone https://github.com/devtron-labs/getting-started-nodejs
1013
cd getting-started-nodejs
1114
```
1215

13-
You can run the sample app while executing this command -
16+
You can run the sample app while executing this command -
17+
1418
```
1519
node app.js
1620
```
1721

1822
Now point your browser at `http://localhost:8080` to see:
23+
1924
```
2025
{"cities":["Amsterdam","Berlin","New York","San Francisco","Tokyo"]}
2126
```
2227

2328
## Getting started with deploying application through Devtron
2429

25-
Lets see how to deploy a custom nodejs app through Devtron.
26-
Make sure Global Configurations are successfully saved and validated before deploying your application.
30+
Lets see how to deploy a custom nodejs app through Devtron.
31+
Make sure Global Configurations are successfully saved and validated before deploying your application.
2732

28-
**STEP 1**
33+
**STEP 1**
2934
Login into your Devtron Dashboard, Go to >> Applications >> Create new App. Give an appropriate name to this App, choose the project in which you want to keep the app, and create it.
3035

31-
**STEP 2**
36+
**STEP 2**
3237
After creating the app, setup the configurations. Copy the repo URL https://github.com/devtron-labs/getting-started-nodejs and paste it the Git repo section of your App. Click save and move to next config.
3338

34-
**STEP 3**
35-
Now choose your Docker build config, the repository where you want to keep your CI build image. Select the container registry from the drop-down.
39+
**STEP 3**
40+
Now choose your Docker build config, the repository where you want to keep your CI build image. Select the container registry from the drop-down.
3641

37-
**STEP 4**
42+
**STEP 4**
3843
Coming up next is configuring the deployment template. As this is a very simple nodejs application we will be only covering the required the configs.
44+
3945
```
4046
ContainerPort :
4147
port : 8080
4248
servicePort : 80
4349
```
44-
`8080` is the port number on which my nodejs application is running.
50+
51+
`8080` is the port number on which my nodejs application is running.
4552

4653
Set the resource limits & requests as given below -
4754

@@ -55,7 +62,7 @@ resources:
5562
memory: 10Mi
5663
```
5764

58-
Now, select the serviceType, keep it as `LoadBalancer`.
65+
Now, select the serviceType, keep it as `LoadBalancer`.
5966

6067
```
6168
service:
@@ -72,11 +79,11 @@ You can add or create secrets or configmaps as per your requirement. These value
7279
That’s it, now trigger your CI pipeline by selecting the latest image and deploy it on your chosen project.
7380

7481
**STEP 8**
75-
After the successful deployment, check out your service manifest for fetching the LoadBalancer URL from the dashboard present in the App Details section.
82+
After the successful deployment, check out your service manifest for fetching the LoadBalancer URL from the dashboard present in the App Details section.
7683

7784
![](/gifs/fetching_loadbalancer.gif)
7885

79-
**STEP 9**
86+
**STEP 9**
8087
Use this URL on your browser and you can get the output as.
8188

8289
```
@@ -86,4 +93,3 @@ Use this URL on your browser and you can get the output as.
8693
Find out a detailed documentation about the configurations from here - https://docs.devtron.ai/devtron/user-guide/creating-application
8794

8895
---
89-

0 commit comments

Comments
 (0)