BookCollection is a book review site which offers insightful book reviews.
This project refers to Youtube Clone Coding on Nomad Coder
https://bookcollection1.herokuapp.com/
You need a Chrome browser to take full advantage of it.
From your project directory, run the following:
- $ npm install
- $ npm run dev:server
- visit http://localhost:4000
- Read book reviews
- Write book reviews
- Select favorite books
- Using modern Javascript
- HTML, CSS
- Jquery
- Server-side platform based on JavaScript engine (V8 engine) Node.js
- Using es5+ Javascript with Babel
- Using express, simple and flexible Node.js web application framework
- Heroku
- Using Postman for testing API request and response
- Using k6 for API load testing
-
API Basic Information
Method Request URL Printed Format Description POST https://www.bookcollection.co.kr/join json Membership Registration -
Request Variable
Request Variable Name Type Required Description Email String Y Email as an ID Password String Y Password -
Printed Result
- When an user calls for membership registration API,
an id of an user object is printed out, if an user request succeeds,
but an error message is printed out, if an user request fails.
-
Error Code
HTTP Response Code Error Message 409 A request conflict with current state of the target resource.
-
API Basic Information
Method Request URL Printed Format Description POST https://www.bookcollection.co.kr/login json Log-in -
Request Variable
Request Variable Name Type Required Description Email String Y Email as an ID Password String Y Password -
Printed Result
- When an user calls for Log-In API,
a success message is printed out, if an user request succeeds,
but an error message is printed out, if an user request fails.
-
Error Code
HTTP Response Code Error Message 409 A request conflict with current state of the target resource.
-
API Basic Information
Method Request URL Printed Format Description POST https://www.bookcollection.co.kr/intro json Star-Rating -
Request Variable
Request Variable Name Type Required Description bookName String Y Name of the book author String Y Author of the book starPoint Number Y Star point rated by an user -
Printed Result
- When an user search for a book, and make a star rate,
an id of a book is printed out if an user request succeeds.
- Error Code
-
API Basic Information
Method Request URL Printed Format Description POST https://www.bookcollection.co.kr/bookpage json Book Review Creation -
Request Variable
Request Variable Name Type Required Description bookReview String Y review text of the book -
Printed Result
- When an user makes a new book review,
an id of a review is printed out if an user request succeeds.
- Error Code
Metric name | Definition |
---|---|
http_req_duration | It's equal to http_req_sending + http_req_waiting + http_req_receiving. (i.e. how long did the remote server take to process the request and respond, without the initial DNS lookup/connection times). |
http_reqs | How many HTTP requests has k6 generated, in total. |
Scenario | VUs | Duration |
---|---|---|
1 | 2000 | 30s |
Metric name | avg | min | med | max |
---|---|---|---|---|
http_req_duration | 5.79s | 232.13ms | 5.53s | 13.14s |
Metric name | TPS |
---|---|
http_reqs | 29.256048/s |
Scenario | VUs | Duration |
---|---|---|
1 | 2000 | 30s |
Metric name | avg | min | med | max |
---|---|---|---|---|
http_req_duration | 38.78s | 30.21s | 40.79s | 45.04s |
Metric name | TPS |
---|---|
http_reqs | 9.38196/s |