Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
enghwa committed Jul 8, 2019
1 parent a823bf4 commit d3ab2b3
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,39 @@ npm install
npx cdk@0.36.1 bootstrap
npx cdk@0.36.1 deploy --require-approval never "*"

```

## Test the app:
This is a spring boot CRUD app with RDS (mysql).

```
# use httpie to POST to ALB endpoint / api/notes , eg:
http POST sprin-sprin-????????????.ap-southeast-1.elb.amazonaws.com/api/notes title="title 2" content="sample content"
# view the list of notes :
http sprin-sprin-????????????.ap-southeast-1.elb.amazonaws.com/api/notes
Connection: keep-alive
Content-Type: application/json;charset=UTF-8
Date: Mon, 08 Jul 2019 06:15:10 GMT
Transfer-Encoding: chunked
[
{
"content": "aa",
"createdAt": "2019-07-08T06:10:41.000+0000",
"id": 1,
"title": "title1",
"updatedAt": "2019-07-08T06:10:41.000+0000"
},
{
"content": "sample content",
"createdAt": "2019-07-08T06:14:28.000+0000",
"id": 2,
"title": "title 2",
"updatedAt": "2019-07-08T06:14:28.000+0000"
}
]
```

0 comments on commit d3ab2b3

Please sign in to comment.