https://github.com/sanskarsharma/thumbgen
web-service for generating and uploading thumbnails
https://github.com/sanskarsharma/thumbgen
docker go thumbnail-generator web-service
Last synced: 4 months ago
JSON representation
web-service for generating and uploading thumbnails
- Host: GitHub
- URL: https://github.com/sanskarsharma/thumbgen
- Owner: sanskarsharma
- License: mit
- Created: 2020-08-15T11:47:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-06-27T17:30:17.000Z (7 months ago)
- Last Synced: 2025-06-27T18:34:00.531Z (7 months ago)
- Topics: docker, go, thumbnail-generator, web-service
- Language: Go
- Homepage:
- Size: 32.2 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# thumbgen
## Overview
thumbgen is a golang web-service for generating and uploading thumbnails of media files.
Demo [live here](https://thumbgen.pohawithpeanuts.com)
## Usage
### Running on local with go
```bash
go run main.go
```
### Running via docker
```bash
docker build -t thumbgen:v0 .
docker run -d -p 4499:4499 thumbgen:v0
```
### Running via docker-compose
```bash
# note : check docker-compose.yaml and modify as required before running this
docker-compose up
```
### Deploying using Clouflare {Workers + Containers}
This deploys to your cloudflare account - make sure to edit/remove custom domain in [wrangler.jsonc](wrangler.jsonc) -> `routes` as needed.
```bash
# install
npm install
npx wrangler deploy
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.