Rishi Ghan cfa09691e8 🔧 Fixed an errant condition
This error was because I checked for active AND prioritized jobs in BullMQ, when none existed, because everything was active, and the socket.io event never fired, causing the browser to be in a bad state and never "resuming" an import even when one was in progress.
2023-08-30 12:21:43 -04:00
2021-05-08 23:20:56 -07:00
2023-08-14 22:15:19 -04:00
2022-12-02 10:30:34 -08:00
2023-08-30 12:21:43 -04:00
2023-08-28 23:56:44 -04:00
2022-03-22 22:02:47 -07:00
2021-05-08 23:20:56 -07:00
2022-07-24 22:20:03 -07:00
2022-04-13 14:37:01 -07:00
2022-08-18 00:29:25 -07:00
2023-08-30 00:08:05 -04:00
2023-08-30 00:08:05 -04:00
2022-05-09 12:39:16 -07:00
2022-07-24 22:20:03 -07:00

threetwo-core-service

This moleculer-based microservice houses endpoints for the following functions:

  1. Local import of a comic library into mongo (currently supports cbr and cbz files)
  2. Metadata extraction from file, comicinfo.xml
  3. Mongo comic object orchestration
  4. CRUD operations on Comic model
  5. Helper utils to help with image metadata extraction, file operations and more.

Local Development

  1. You need calibre in your local path. On macOS you can brew install calibre and make sure that ebook-meta is present on the path Calibre is no longer required as a dependency. Ignore this step.
  2. You need mongo for the data store. on macOS you can use these instructions to install it
  3. Clone this repo
  4. Run npm i
  5. Assuming you installed mongo correctly, run MONGO_URI=mongodb://localhost:27017/threetwo npm run dev to start the service
  6. You should see the service spin up and a list of all the endpoints in the terminal
  7. The service can be accessed through http://localhost:3000/api/import/*

Docker Instructions

  1. Build the image using docker build . -t frishi/threetwo-import-service. Give it a hot minute.
  2. Run it using docker run -it frishi/threetwo-import-service
Description
Endpoints for core functions, along with other useful ones for ThreeTwo!
Readme 3.3 MiB
Languages
TypeScript 94.7%
HTML 4.7%
Dockerfile 0.6%