Update README.md

This commit is contained in:
DrMint 2022-04-13 03:05:01 +02:00 committed by GitHub
parent 9fe89602d5
commit e26f65d898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 2 deletions

View File

@ -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
```