Categorygithub.com/BTDevelop/go-cdn
repository
0.0.0-20240226083046-08f5c313cd60
Repository: https://github.com/btdevelop/go-cdn.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

go cdn

Create your own Cdn service on Minio and Aws with Golang.

go cdn

Overview

This project allows you to create your own Content Delivery Network (CDN) service using MinIO and AWS S3 with the Go programming language. You can use this CDN service to upload, retrieve, and delete images.

Prerequisites

Before you get started, make sure you have the following prerequisites installed on your computer:

  • Docker: You will need Docker to run this project.

Installation

Follow these steps to set up and run the project:

1- Clone the repository:

git clone https://github.com/BTDevelop/go-cdn.git

2- Rename the .env.example file to .env and enter the required information. 3- Start the project with Docker Compose:

docker-compose up -d

Now, you can access the following services:

Postman Collection

You can find a Postman Collection for this project in the go-minio-cdn.postman_collection.json file.

Image Upload

Upload to MinIO

KEYVALUE
bucketbucket name
pathslider
filechoose file

Upload to MinIO and AWS S3

KEYVALUE
bucketbucket name
pathslider
filechoose file

Image Get

Get Image

Get Image with Custom Width and Height

Image Delete

Delete from MinIO

KEYVALUE
bucketbucket name
objectobject name

Delete from MinIO and AWS S3

KEYVALUE
bucketbucket name
objectobject name

Contributing

This project is open-source, and contributions are welcome. Feel free to contribute or provide feedback of any kind.

License

This project is licensed under the Apache License. See the LICENSE file for more details.