Skip to content

MeilCliPages/image-uploader

Repository files navigation

image-uploader

This is image uploader of @MeilCli private usage. And @MeilCli still continue to implement this.

Concepts

  • Low price image uploader & image hosting
  • May free if the site access is few (excepting domain price)
  • Can upload image only admin
  • Can access image everyone
  • Can host the own domain
  • Can upload image with variants

Requirements

  • Have a Cloudflare account
  • Have domain on Cloudflare
  • Register payment method on Cloudflare
  • Authenticated wrangler

Price information

Getting started

Quick look this image uploader

Clone this repository & execute below commands

npm install
npx wrangler d1 migrations apply d1-example-com --local
npm run generate
npm run dev

Use this image uploader

  1. Clone or fork this repository
  2. Execute npm install
  3. Configure Worker
  4. Configure R2
  5. Configure D1
  6. Configure access restriction
  7. Configure cache rule
  8. Do debug, execute npm run dev
  9. Deploy your worker, execute npm run deploy

If you want to manage deployment code on private repository, see Private management

Development documents

License

MIT License

Using libraries on Worker side

Library License
hono MIT License
@hono/zod-validator MIT License
zod MIT License
prisma Apache License v2

Using libraries on Frontend side

Library License
Bootstrap MIT License
bs-custom-file-input MIT License
Compressor.js MIT License
clipboard.js MIT License