You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 01-contenedores/lemoncode-challenge/node-stack/backend/README.md
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,25 @@ PORT=
19
19
20
20
Notice that `HOST` is set by default on `localhost` and `PORT` on `5000`. These are the settings to stablish where the HTTP application is listening. You don't need to change it.
21
21
22
-
With the database running you can check the appliaction by running:
22
+
With the database running on local, you can check the appliaction by running:
23
+
24
+
> NOTE: If is the first time that you run it, no data will be available
23
25
24
26
```bash
25
27
npm start
26
28
```
27
29
28
-
And then call it with;
30
+
And then call it with:
29
31
30
32
```bash
31
33
curl http://localhost:5000/api/topics
32
34
```
33
35
36
+
If you want to feed some data you can try:
37
+
38
+
```bash
39
+
curl -d '{"Name":"Devops"}' -H "Content-Type: application/json" -X POST http://localhost:5000/api/topics
40
+
curl -d '{"Name":"K8s"}' -H "Content-Type: application/json" -X POST http://localhost:5000/api/topics
41
+
curl -d '{"Name":"Docker"}' -H "Content-Type: application/json" -X POST http://localhost:5000/api/topics
42
+
curl -d '{"Name":"Prometheus"}' -H "Content-Type: application/json" -X POST http://localhost:5000/api/topics
0 commit comments