- model: The package which contains sharable types between
client
andserver
. - client: This is a front-end part, with components for searching a book by query and showing the result of a book search in a table with pagination.
- server: Here is the backend part
To start the project, it will be enough to execute the following command:
docker compose up
First, you need to install all of the project dependencies:
yarn
After you need to build the model project:
yarn build:model
Now start up the server.
yarn run:server
The server should now be accessible over http on port 3000 at:
https://localhost:3000/
Then you need to start the client:
yarn run:client
The client should now be accessible over http on port 5137 at:
https://localhost::5137/
GET /books/
- an endpoint that fetches books from using Google API. It gets the parameters for book search and pagination and returns the list of books on the current page.
Query params:
query
: search for volumes that contain this text string.page
: Current pagemaxNumber
: Maximum number of books per page