This is a second-hand book matching platform.
- Vue.js
- ASP.NET
- MSSQL
- OCR (Tesseract)
- install dependencies
dotnet restore
- activate service
dotnet watch run
- open swagger
visit the following url
https://second-reader.onrender.com/swagger/index.html
or if the local server isactivated, visit
http://localhost:5078/swagger/index.html
during Production, use a string (i.e. user_dev_001) as the bearer to test authorized endpoint
- prepare database
see ConnectionStrings in appsetting.json
- build and check output
cd /backend
dotnet buildthen go to backend/bin/Debug/net8.0/tessdata/ to check if chi_tra.traineddata and eng.traineddata exist.
use the following path if needed:
var tessdataPath = Path.Combine(AppContext.BaseDirectory, "tessdata");- test Tessetact
add images to test_images folder, and change the file name in program.cs where imagePath is defined
then run
dotnet watch runthe extracted text should be printed on the console
- test the endpoint
/api/books/isbn use OCR to extract ISBN of the uploaded image and call Google Books API to get the book information
when testing this endpoint, take the picture of the ISBN from the inside page. images of ISBN from inside page has a higher success rate than the one next to the barcode
install dependencies
npm install
npm run dev
then visit: http://localhost:5173/