From 5b1cfe638ed23aa5f5a57bc7e22437c31e90f15f Mon Sep 17 00:00:00 2001 From: Deki Date: Sat, 17 Sep 2022 06:40:33 +0700 Subject: [PATCH] Update Readme #26 --- README.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 48 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 930fe8f..85f6b0a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,34 @@ # Image Optimizer Backend -Image Optimizer Backend is a application for [image optimizer frontend](https://github.com/dekiakbar/image-optimizer-fe). Build with [Nest Js](https://nestjs.com/) +

+ + Build + + + Deploy + + + Lint + + + Build + + + + +

+ +--- + +## Table of Contents + +- [Installation](#installation) + - [Without docker](#without-docker) + - [Docker](#docker) +- [Deployment](#deployment) +- [Environment Variable](#environment-variable) +- [Frontend](#frontend) +- [License](#license) ## Installation @@ -37,7 +65,7 @@ Image Optimizer Backend is a application for [image optimizer frontend](https:// - ```bash # access swager api - http://localhost:3000 + http://localhost:/api ``` - #### Docker @@ -57,8 +85,8 @@ Image Optimizer Backend is a application for [image optimizer frontend](https:// ``` - ```bash - # access swager api - http://localhost:3000 + # access swagger api + http://localhost:3000/api ``` - #### NOTE : if you wanna run npm command, please use this. ```bash @@ -94,6 +122,20 @@ Fill the required `env` variables: ```bash PORT=3000 +# Storage type for save image +# valid : +# - S3 +# - imagekit +STORAGE_TYPE=S3 + +# if use S3 as storage +S3_BUCKET_NAME= +S3_REGION=global +S3_ENDPOINT= +S3_ACCESS_KEY_ID= +S3_SECRET_ACCESS_KEY= + +# if use imagekit as storage IMAGEKIT_PUBLIC_KEY= IMAGEKIT_PRIVATE_KEY= URL_ENDPOINT= @@ -105,8 +147,8 @@ MAX_FILE_UPLOAD=5 MAX_UPLOAD_SIZE=8192 ``` -## Frontend Clone this repository +## Frontend You must install [image optimizer Frontend](https://github.com/dekiakbar/image-optimizer-fe). ## License -[MIT](https://github.com/git/git-scm.com/blob/main/MIT-LICENSE.txt) \ No newline at end of file +[MIT](https://github.com/dekiakbar/image-optimizer/blob/master/LICENSE) \ No newline at end of file