Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modified readme #6

Merged
merged 2 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,28 @@ 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

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
```


Binary file added images/actions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.