Skip to content

Latest commit

 

History

History
executable file
·
143 lines (122 loc) · 5.6 KB

README.md

File metadata and controls

executable file
·
143 lines (122 loc) · 5.6 KB

HANA PDF


HANA

HANA PDF is your go-to solution for effortlessly managing your PDFs. We've designed it with simplicity in mind, so you can edit, combine, shrink, convert, and personalize your PDFs with just a few clicks. And was implemented with front-end framework like ViteJS and Tailwind CSS and used of Flowbite library to maintain responsive and materialize interface. And powered with iLovePDF and Aspose Cloud API as one of the back-end.


HANA


Requirements [For development with local environment]


Python Module Requirements

  • Requests

Build Status

  • CodeQL
  • HANA Container SIT
  • HANA Container Production

Deployment On Docker [YOUR_LOCAL_IP_ADDRESS:80]

Step to configure

  1. Clone the repository with git clone
  2. Go to root directory from this project
  3. Start to deploy
    • Windows based [Using docker desktop]

      - docker compose up -d
      - docker compose exec hana-container-instance php artisan migrate
      - docker stats
    • Linux based [Using docker.io & docker-compose]

      - sudo docker-compose up -d
      - sudo docker-compose exec hana-container-instance php artisan migrate
      - sudo docker stats
  4. Configure REST API and Telegram Notification
    • Windows based [Using docker desktop]

      - docker compose exec hana-container-app-pdf echo "TELEGRAM_BOT_ID=YOUR_TELEGRAM_BOT_ID" >> .env
      - docker compose exec hana-container-app-pdf echo "TELEGRAM_CHAT_ID=YOUR_TELEGRAM_CHANNEL_ID" >> .env
      - docker compose exec hana-container-app-pdf echo "TOKEN_GENERATE=YOUR_ENCODE_SHA512_TOKEN" >> .env
    • Linux based [Using docker.io & docker-compose]

      - sudo docker-compose exec hana-container-app-pdf echo "TELEGRAM_BOT_ID=YOUR_TELEGRAM_BOT_ID" >> .env
      - sudo docker-compose exec hana-container-app-pdf echo "TELEGRAM_CHAT_ID=YOUR_TELEGRAM_CHANNEL_ID" >> .env
      - sudo docker-compose exec hana-container-app-pdf echo "TOKEN_GENERATE=YOUR_ENCODE_SHA512_TOKEN" >> .env

Deployment On Native OS Host

Step to configure

  1. Clone the repository with git clone
  2. Copy .env.example file to .env and modify database credentials
  3. Add additional environment into .env with this string (Add yourself value :p)
- ASPOSE_CLOUD_CLIENT_ID="ASPOSE_CLOUD_CLIENT_ID" [https://dashboard.aspose.cloud/]
- ASPOSE_CLOUD_TOKEN="ASPOSE_CLOUD_TOKEN" [https://dashboard.aspose.cloud/]
- ADOBE_CLIENT_ID="ADOBE_CLIENT_ID" [https://developer.adobe.com/document-services/docs/overview/pdf-embed-api/]
- FTP_USERNAME="FTP_USERNAME" [https://dashboard.aspose.cloud/]
- FTP_USERPASS="FTP_USERPASS" [https://dashboard.aspose.cloud/]
- FTP_SERVER="FTP_SERVER" [https://dashboard.aspose.cloud/]
- ILOVEPDF_ENC_KEY="ILOVEPDF_ENC_KEY" [Generate your hash key (Max. 25 digits)]
- ILOVEPDF_PUBLIC_KEY="ILOVEPDF_PUBLIC_KEY" [https://developer.ilovepdf.com/]
- ILOVEPDF_SECRET_KEY="ILOVEPDF_SECRET_KEY" [https://developer.ilovepdf.com/]
- PDF_IMG_POOL="image"
- PDF_BATCH="batch"
- PDF_UPLOAD="upload"
- PDF_DOWNLOAD="download"
- PDF_POOL="pool"
- TELEGRAM_BOT_ID="YOUR_TELEGRAM_BOT_ID" [https://telegram-bot-sdk.com/docs/getting-started/installation]
- TELEGRAM_CHAT_ID="YOUR_TELEGRAM_CHANNEL_ID" [https://telegram-bot-sdk.com/docs/getting-started/installation]
- TOKEN_GENERATE="YOUR_ENCODE_SHA512_TOKEN"
  1. Run the following command [Make sure to configure database connectivity before use migrate function]
- composer install
- php artisan key:generate
- php artisan storage:link
- php artisan migrate
  1. Create new directory inside storage/app/public
    • image
    • batch
    • upload
    • download
    • pool
  2. Start to deploy
    - npm run dev -- --host
    - php artisan serve --host=localhost --port=80

Technology Stack


License

The HANA PDF is a open source Laravel Project that has licensed under the MIT license.


HANA-CI Build Project 2016 - 2024