@@ -25,7 +25,7 @@ used of Flowbite library to maintain responsive and materialize interface. And p
25
25
- On Linux use docker-compose and docker.io
26
26
- [ Node JS 20.11] ( https://nodejs.org/en )
27
27
- [ PHP 8.2.12] ( https://www.php.net/downloads.php )
28
- - [ PostgreSQL 16.2 ] ( https://www.postgresql.org/ )
28
+ - [ PostgreSQL 17.0 ] ( https://www.postgresql.org/ )
29
29
- [ Postman] ( https://www.postman.com/ )
30
30
31
31
---
@@ -80,7 +80,6 @@ used of Flowbite library to maintain responsive and materialize interface. And p
80
80
` ` `
81
81
4. Configure Client Host
82
82
` ` ` bash
83
- - docker compose exec hana-app-pdf sed -i " s/VITE_ADOBE_CLIENT_ID=xxxx/VITE_ADOBE_CLIENT_ID=YOUR_ADOBE_CLIENT_ID/" >> .env
84
83
- docker compose exec hana-app-pdf echo " TELEGRAM_BOT_ID=YOUR_TELEGRAM_BOT_ID" >> .env
85
84
- docker compose exec hana-app-pdf echo " TELEGRAM_CHAT_ID=YOUR_TELEGRAM_CHANNEL_ID" >> .env
86
85
- docker compose exec hana-app-pdf chmod o+w /var/www/html/hanaci-pdf/storage/ -R
@@ -99,7 +98,31 @@ used of Flowbite library to maintain responsive and materialize interface. And p
99
98
- docker compose exec hana-app-pdf sed -i ' s|http://192.168.0.2|YOUR_BACKEND_URL:PORT|' public/build/assets/kao-logic-CHECK_LATEST_REVISION.js
100
99
- docker compose exec hana-app-pdf sed -i ' s|STATIC_CLIENT_ID|YOUR_ADOBE_CLIENT_ID|' public/build/assets/kao-logic-CHECK_LATEST_REVISION.js
101
100
` ` `
102
- 6. Refresh page and done.
101
+ 6. Configure Min.io
102
+ - Open minio console page, URL: http://YOUR_LOCAL_IP:9001
103
+ - Go to administrator -> bucket
104
+ - Create new bucket with name " hana-pdf"
105
+ - Go to user -> access key
106
+ - Create new access key
107
+ - Check " Restrict beyond user policy"
108
+ - Fill custom policy
109
+ ` ` ` bash
110
+ {
111
+ " Version" : " 2012-10-17" ,
112
+ " Statement" : [
113
+ {
114
+ " Effect" : " Allow" ,
115
+ " Action" : [" s3:GetObject" , " s3:ListBucket" , " s3:PutObject" ],
116
+ " Resource" : [" arn:aws:s3:::hana-pdf" , " arn:aws:s3:::hana-pdf/*" ]
117
+ }
118
+ ]
119
+ }
120
+ ` ` `
121
+ - Copy Access key into backend module environment " MINIO_ACCESS_KEY"
122
+ - Copy Secret key into backend module environment " MINIO_SECRET_KEY"
123
+ - Set name access key into " hana-pdf"
124
+ - Create access key
125
+ 7. Refresh page and done.
103
126
104
127
---
105
128
@@ -112,7 +135,6 @@ used of Flowbite library to maintain responsive and materialize interface. And p
112
135
A. Copy ** .env.example** file to ** .env** and modify database credentials
113
136
114
137
` ` ` bash
115
- - VITE_ADOBE_CLIENT_ID=" ADOBE_CLIENT_ID" [https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/]
116
138
- VITE_JWT_TOKEN=" YOUR_CURRENT_BEARER_TOKEN" [Get it from Backend with route api/v1/auth/getToken]
117
139
- TELEGRAM_BOT_ID=" YOUR_TELEGRAM_BOT_ID" [https://telegram-bot-sdk.com/docs/getting-started/installation]
118
140
- TELEGRAM_CHAT_ID=" YOUR_TELEGRAM_CHANNEL_ID" [https://telegram-bot-sdk.com/docs/getting-started/installation]
@@ -135,52 +157,80 @@ used of Flowbite library to maintain responsive and materialize interface. And p
135
157
136
158
2. Clone the repository with branch \_\_ dev/be/master [Backend Services]
137
159
138
- A. Copy ** .env.example** file to ** .env** and modify database credentials
139
-
140
- ` ` ` bash
141
- - ASPOSE_CLOUD_CLIENT_ID=" ASPOSE_CLOUD_CLIENT_ID" [https://dashboard.aspose.cloud/]
142
- - ASPOSE_CLOUD_TOKEN=" ASPOSE_CLOUD_TOKEN" [https://dashboard.aspose.cloud/]
143
- - FTP_USERNAME=" FTP_USERNAME" [https://dashboard.aspose.cloud/]
144
- - FTP_USERPASS=" FTP_USERPASS" [https://dashboard.aspose.cloud/]
145
- - FTP_SERVER=" FTP_SERVER" [https://dashboard.aspose.cloud/]
146
- - ILOVEPDF_ENC_KEY=" ILOVEPDF_ENC_KEY" [Generate your hash key (Max. 25 digits)]
147
- - ILOVEPDF_PUBLIC_KEY=" ILOVEPDF_PUBLIC_KEY" [https://developer.ilovepdf.com/]
148
- - ILOVEPDF_SECRET_KEY=" ILOVEPDF_SECRET_KEY" [https://developer.ilovepdf.com/]
149
- - PDF_IMG_POOL=" image"
150
- - PDF_BATCH=" batch"
151
- - PDF_UPLOAD=" upload"
152
- - PDF_DOWNLOAD=" download"
153
- - PDF_POOL=" pool"
154
- - TELEGRAM_BOT_ID=" YOUR_TELEGRAM_BOT_ID" [https://telegram-bot-sdk.com/docs/getting-started/installation]
155
- - TELEGRAM_CHAT_ID=" YOUR_TELEGRAM_CHANNEL_ID" [https://telegram-bot-sdk.com/docs/getting-started/installation]
156
- - HANA_UNIQUE_TOKEN=" YOUR_SHA512_UNIQUE_TOKEN"
157
- ` ` `
158
-
159
- B. Run the following command [Make sure to configure database connectivity before use migrate function]
160
-
161
- ` ` ` bash
162
- - composer install
163
- - php artisan key:generate
164
- - php artisan jwt:secret
165
- - php artisan storage:link
166
- ` ` `
167
-
168
- C. Create new directory inside storage/app/public
169
-
170
- - image
171
- - batch
172
- - upload
173
- - download
174
- - pool
175
-
176
- D. Start to deploy
177
-
178
- ` ` ` bash
179
- - npm run dev -- --host
180
- - php artisan serve --host=localhost --port=80
181
- ` ` `
182
-
183
- E. Configure apiUrl variable on resources/js/kao-logic.js to your considered BE address and port !
160
+ - Copy ** .env.example** file to ** .env** and modify database credentials
161
+ ` ` ` bash
162
+ - ASPOSE_CLOUD_CLIENT_ID=" ASPOSE_CLOUD_CLIENT_ID" [https://dashboard.aspose.cloud/]
163
+ - ASPOSE_CLOUD_TOKEN=" ASPOSE_CLOUD_TOKEN" [https://dashboard.aspose.cloud/]
164
+ - FTP_USERNAME=" FTP_USERNAME" [https://dashboard.aspose.cloud/]
165
+ - FTP_USERPASS=" FTP_USERPASS" [https://dashboard.aspose.cloud/]
166
+ - FTP_SERVER=" FTP_SERVER" [https://dashboard.aspose.cloud/]
167
+ - ILOVEPDF_ENC_KEY=" ILOVEPDF_ENC_KEY" [Generate your hash key (Max. 25 digits)]
168
+ - ILOVEPDF_PUBLIC_KEY=" ILOVEPDF_PUBLIC_KEY" [https://developer.ilovepdf.com/]
169
+ - ILOVEPDF_SECRET_KEY=" ILOVEPDF_SECRET_KEY" [https://developer.ilovepdf.com/]
170
+ - PDF_IMG_POOL=" image"
171
+ - PDF_BATCH=" batch"
172
+ - PDF_UPLOAD=" upload"
173
+ - PDF_DOWNLOAD=" download"
174
+ - PDF_POOL=" pool"
175
+ - TELEGRAM_BOT_ID=" YOUR_TELEGRAM_BOT_ID" [https://telegram-bot-sdk.com/docs/getting-started/installation]
176
+ - TELEGRAM_CHAT_ID=" YOUR_TELEGRAM_CHANNEL_ID" [https://telegram-bot-sdk.com/docs/getting-started/installation]
177
+ - HANA_UNIQUE_TOKEN=" YOUR_SHA512_UNIQUE_TOKEN"
178
+ - MINIO_ACCESS_KEY=" YOUR_MINIO_ACCESS_KEY"
179
+ - MINIO_SECRET_KEY=" YOUR_MINIO_SECRET_KEY"
180
+ - MINIO_ENDPOINT=" YOUR_MINIO_ENDPOINT_URL"
181
+ ` ` `
182
+ - Run the following command [Make sure to configure database connectivity before use migrate function]
183
+ ` ` ` bash
184
+ - composer install
185
+ - php artisan key:generate
186
+ - php artisan jwt:secret
187
+ - php artisan storage:link
188
+ ` ` `
189
+ - Create new directory inside storage/app/public
190
+ - image
191
+ - batch
192
+ - upload
193
+ - download
194
+ - pool
195
+ - Configure REST API
196
+ - Install Postman
197
+ - Create a new HTTP request with POST format
198
+ - URL: http://YOUR_LOCAL_IP:YOUR_LOCAL_PORT/api/v1/auth/getToken
199
+ - Body: form-data
200
+
201
+ - password: YOUR_SHA512_UNIQUE_TOKEN
202
+ - Send a POST request to get access token
203
+ - Configure frontend credentials
204
+ - Set adobeClientID -> YOUR_ADOBE_CLIENT_ID
205
+ - Set apiUrl -> YOUR_BACKEND_URL
206
+ - Set bearerToken -> response token
207
+ - Configure Min.io
208
+ - Open minio console page, URL: http://YOUR_LOCAL_IP:9001
209
+ - Go to administrator -> bucket - Create new bucket with name " hana-pdf"
210
+ - Go to user -> access key - Create new access key
211
+ - Check " Restrict beyond user policy"
212
+ - Fill custom policy
213
+ ` ` ` bash
214
+ {
215
+ " Version" : " 2012-10-17" ,
216
+ " Statement" : [
217
+ {
218
+ " Effect" : " Allow" ,
219
+ " Action" : [" s3:GetObject" , " s3:ListBucket" , " s3:PutObject" ],
220
+ " Resource" : [" arn:aws:s3:::hana-pdf" , " arn:aws:s3:::hana-pdf/*" ]
221
+ }
222
+ ]
223
+ }
224
+ ` ` `
225
+ - Copy Access key into backend module environment " MINIO_ACCESS_KEY"
226
+ - Copy Secret key into backend module environment " MINIO_SECRET_KEY"
227
+ - Set name access key into " hana-pdf"
228
+ - Create access key
229
+ - Start to deploy
230
+ ` ` ` bash
231
+ - npm run dev -- --host
232
+ - php artisan serve --host=localhost --port=80
233
+ ` ` `
184
234
185
235
---
186
236
@@ -190,9 +240,9 @@ used of Flowbite library to maintain responsive and materialize interface. And p
190
240
- [DropzoneJS](https://www.dropzone.dev/)
191
241
- [Flowbite](https://flowbite.com/)
192
242
- [Laravel](https://laravel.com/)
193
- - [Minio ](https://min.io/)
243
+ - [Min.io ](https://min.io/)
194
244
- [Node JS](https://nodejs.org/en)
195
- - [Mozilla PDFJS ](https://mozilla.github.io/pdf.js/)
245
+ - [Mozilla PDF.JS ](https://mozilla.github.io/pdf.js/)
196
246
- [Tailwind CSS](https://tailwindcss.com/)
197
247
- [Vite JS](https://vitejs.dev/)
198
248
0 commit comments