📦 Instruction for paths for unrar and p7zip

This commit is contained in:
2023-09-01 09:44:02 -05:00
parent 1d7561279b
commit f4e2db5a5f

View File

@@ -11,20 +11,26 @@ This [moleculer-based](https://github.com/moleculerjs/moleculer-web) microservic
## Local Development ## Local Development
1. You need the following dependencies installed: `mongo`, `elasticsearch` and `redis` 1. You need the following dependencies installed: `mongo`, `elasticsearch` and `redis`
2. Clone this repo 2. You also need binaries for `unrar` and `p7zip`
3. Run `npm i` 3. Clone this repo
4. Assuming you installed the dependencies correctly, run: 4. Run `npm i`
5. Assuming you installed the dependencies correctly, run:
``` ```
COMICS_DIRECTORY=<PATH_TO_COMICS_DIRECTORY> \ COMICS_DIRECTORY=<PATH_TO_COMICS_DIRECTORY> \
USERDATA_DIRECTORY=<PATH_TO_USERDATA_DIRECTORY> \ USERDATA_DIRECTORY=<PATH_TO_USERDATA_DIRECTORY> \
REDIS_URI=redis://<REDIS_HOST:REDIS_PORT> \ REDIS_URI=redis://<REDIS_HOST:REDIS_PORT> \
ELASTICSEARCH_URI=<ELASTICSEARCH_HOST:ELASTICSEARCH_PORT> \ ELASTICSEARCH_URI=<ELASTICSEARCH_HOST:ELASTICSEARCH_PORT> \
MONGO_URI=mongodb://<MONGO_HOST:MONGO_PORT>/threetwo \ MONGO_URI=mongodb://<MONGO_HOST:MONGO_PORT>/threetwo \
UNRAR_BIN_PATH=<UNRAR_BIN_PATH> \
SEVENZ_BINARY_PATH=<SEVENZ_BINARY_PATH> \
npm run dev npm run dev
``` ```
to start the service to start the service
5. You should see the service spin up and a list of all the endpoints in the terminal
6. The service can be accessed through `http://localhost:3000/api/<serviceName>/*` 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/<serviceName>/*`
## Docker Instructions ## Docker Instructions