# Free static hosting guide

This project is a static website, so it can be hosted without a traditional paid server. The app reads selected PDF files in the visitor's browser and does not require a document-upload backend.

## Recommended: Cloudflare Pages

Cloudflare Pages supports static file deployments; its current free-plan docs list up to 500 deploys per month. Review the latest limits before publishing: https://developers.cloudflare.com/pages/platform/limits/

1. Create/sign in to a Cloudflare account.
2. Create a Pages project and choose direct upload (or connect a Git repository).
3. Upload the contents of the `pdf-reader-app` folder, with `index.html` at the site root.
4. Open the generated `*.pages.dev` address and check the reader and Word conversion controls.

## Alternative: GitHub Pages

GitHub Pages serves static files from a repository. On GitHub Free the repository must be public for Pages hosting. A public repository makes the application source readable to everyone.

1. Create a public repository for this app.
2. Add the contents of the app folder to the repository root.
3. In repository Settings, open Pages and select deployment from the main branch and root folder.
4. Visit the generated `*.github.io` address after deployment completes.

Official documentation: https://docs.github.com/en/pages/getting-started-with-github-pages/what-is-github-pages

## Before publishing

- Confirm the repository or uploaded folder contains no private PDFs, keys, passwords, or personal information.
- The app loads PDF.js and the Word-file generator from public CDNs, so visitors need internet access.
- Hosting is free under the provider's current free plan and limits; provider terms and quotas can change.
- Keep the site static. It does not need to upload visitor PDFs to the host.
