2023-03-08 12:37:27 +01:00
|
|
|
# KitabCitab Web App
|
2022-12-27 02:53:10 +01:00
|
|
|
|
2023-03-08 12:37:27 +01:00
|
|
|
KitabCitab Web App is app that provides books search services by name, author and terms from books.
|
2022-12-27 02:53:10 +01:00
|
|
|
|
2023-03-08 12:37:27 +01:00
|
|
|
## Functionalities
|
2022-12-27 02:53:10 +01:00
|
|
|
|
2023-03-08 12:37:27 +01:00
|
|
|
- Search books
|
|
|
|
|
- Read books
|
2022-12-27 02:53:10 +01:00
|
|
|
|
2023-03-08 12:37:27 +01:00
|
|
|
## App requirements
|
2022-12-27 02:53:10 +01:00
|
|
|
|
2023-03-08 12:37:27 +01:00
|
|
|
- Node.js
|
|
|
|
|
- Next.js
|
|
|
|
|
- ElasticSearch server (data)
|
2022-12-27 02:53:10 +01:00
|
|
|
|
2023-03-08 12:37:27 +01:00
|
|
|
## Installation
|
2022-12-27 02:53:10 +01:00
|
|
|
|
2023-03-08 12:37:27 +01:00
|
|
|
1. Clone this project from GitLab repository "https://gitlab.com/saburly/kitabcitab/kitabcitab-frontend.git".
|
|
|
|
|
2. In terminal, go to directory of the project and run "npm install" to install all packages.
|
|
|
|
|
3. Change ENV_VAR variable inside "envconfig.js" to your server url. Default is "http://localhost:9200".
|
|
|
|
|
4. Run "npm run dev" to start app, and then go to url "http://localhost:3000".
|
2022-12-27 02:53:10 +01:00
|
|
|
|
2023-03-08 12:37:27 +01:00
|
|
|
## Example of data object
|
2022-12-27 02:53:10 +01:00
|
|
|
|
2023-03-08 12:37:27 +01:00
|
|
|
result = {
|
|
|
|
|
"book" : "Hamine pustolovine",
|
|
|
|
|
"writer" : "Muhamed Ahmed Mustafa",
|
|
|
|
|
"numOfPages": "98",
|
|
|
|
|
"text" : "Lorem ipsum"
|
|
|
|
|
}
|
2022-12-27 02:53:10 +01:00
|
|
|
|
|
|
|
|
|