diff --git a/README.md b/README.md index 49dc941..590aaa9 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,11 @@ Use `npm test` to run the test. # CI with GitHub Actions -Push something in some branch raise a pull request in the repository. You will the tests being executed. +Push something in some branch raise a pull request in the repository. You will see the tests being executed in the actions section. + +Like this + +![alt text](images/actions.png) # Docker @@ -38,6 +42,16 @@ Go to the docker directory `cd docker`. Run the command `docker-compose build` and then `docker-compose up` . Exit by `docker-compose down` . +To test this now run + +``` +azureuser@deepanshudevops:~/exp/data$ curl -sX GET http://localhost:3000 +Hello NODE +``` +To send a POST request run this +``` + curl --header "Content-Type: application/json" --request POST --data '{"name":"xyz","quantity":"1", "price": "20"}' http://localhost:3000/products +``` diff --git a/images/actions.png b/images/actions.png new file mode 100644 index 0000000..97af05b Binary files /dev/null and b/images/actions.png differ