📕 Updated local dev instructions in README
This commit is contained in:
24
README.md
24
README.md
@@ -10,14 +10,22 @@ This [moleculer-based](https://github.com/moleculerjs/moleculer-web) microservic
|
||||
|
||||
## 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](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/) 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/*`
|
||||
1. You need the following dependencies installed: `mongo`, `elasticsearch` and `redis`
|
||||
2. Clone this repo
|
||||
3. Run `npm i`
|
||||
4. Assuming you installed the dependencies correctly, run:
|
||||
```
|
||||
COMICS_DIRECTORY=<PATH_TO_COMICS_DIRECTORY> \
|
||||
USERDATA_DIRECTORY=<PATH_TO_USERDATA_DIRECTORY> \
|
||||
REDIS_URI=redis://<REDIS_HOST:REDIS_PORT> \
|
||||
ELASTICSEARCH_URI=<ELASTICSEARCH_HOST:ELASTICSEARCH_PORT> \
|
||||
MONGO_URI=mongodb://<MONGO_HOST:MONGO_PORT>/threetwo \
|
||||
npm run dev
|
||||
```
|
||||
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>/*`
|
||||
|
||||
## Docker Instructions
|
||||
|
||||
1. Build the image using `docker build . -t frishi/threetwo-import-service`. Give it a hot minute.
|
||||
|
||||
Reference in New Issue
Block a user