From e26f65d89824644145cdcb0e56c0a2415dd36a71 Mon Sep 17 00:00:00 2001 From: DrMint Date: Wed, 13 Apr 2022 03:05:01 +0200 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a39a42a..b338577 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ ```bash git clone https://github.com/Accords-Library/img.accords-library.com.git cd img.accords-library.com +npm install ``` To install imagemagick, run the following command: @@ -12,13 +13,23 @@ To install imagemagick, run the following command: ./install.sh ``` -To convert the images run: +To convert all images run: (possibly change the source image folder in the script beforehand) ```bash -python ./run_prepareimg.py +python3 processAll.py ``` To serve the files, run: ```bash ./run_img_server.sh ``` + +To start the api server, create a .env file and add: +```txt +TOKEN=SET A KEY TO BE USED FOR AUTH BY THE WEBHOOK +PORT=PORT TO USE WHEN RUNNING THE SERVER +``` +Then run: +```bash +./run_img_api.sh +```