Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yunnie-pin/cloudinary-cdn-api
🧊 simple cdn api with cloudinary
https://github.com/yunnie-pin/cloudinary-cdn-api
cdn gin golang
Last synced: 3 months ago
JSON representation
🧊 simple cdn api with cloudinary
- Host: GitHub
- URL: https://github.com/yunnie-pin/cloudinary-cdn-api
- Owner: Yunnie-pin
- Created: 2024-07-26T13:00:49.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T03:19:08.000Z (5 months ago)
- Last Synced: 2024-10-01T00:43:51.135Z (3 months ago)
- Topics: cdn, gin, golang
- Language: Go
- Homepage: https://cloudinary-cdn-api-production.up.railway.app
- Size: 39.1 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# Cloudinary-API-GO
https://github.com/Yunnie-pin/cloudinary-cdn-api
Cloudinary-API-GO is a simple API that allows users to upload images to Cloudinary and store the image details in a PostgreSQL database. The API is built using Go and the Gin framework. The API also includes authentication.
## Endpoints
### Headers| Key | Value |
| ------------- | ------------------ |
| Authorization | {{ SECRET_AUTH }} |### Uploader
| Method | Endpoint | Description |
| ------ | -------------------------- | --------------------------------- |
| POST | `/api/uploader` | Upload an image to Cloudinary |### Files
| Method | Endpoint | Description |
| ------ | ------------------------------------ | ----------------------------- |
| GET | `/api/buckets` | Get list buckets |
| POST | `/api/buckets` | Create a new bucket |
| POST | `/api/path` | Create a new path in a bucket |
| GET | `/api/files/{{ bucket }}/{{ path }}` | Get list files in a bucket |
| DELETE | `/api/files/{{ bucket }}/{{ path }}` | Delete a file in a bucket |## Access Documentation
- Postman: https://github.com/Yunnie-pin/cloudinary-cdn-api/blob/main/CDN.postman_collection.json
## Tech Stack
- **Server:** [Golang](https://golang.org/)
- **Database:** [PostgreSQL](https://www.postgresql.org/)
- **ORM:** [GORM](https://gorm.io/)
- **Cloudinary:** [Cloudinary](https://cloudinary.com/)
- **Router:** [Gin](https://gin-gonic.com/docs/)## Init
#### Inisiasi Package
```
go mod tidy
```### Migrasi
```
go run main.go --migrate
```#### development
```
go run main.go
```#### build production
```
go build
```## Deployment
link : [https://cloudinary-cdn-api-production.up.railway.app/](https://cloudinary-cdn-api-production.up.railway.app/)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Support
If you find this project useful, please consider giving it a ⭐️ on [GitHub](https://github.com/Yunnie-pin/cloudinary-cdn-api). Your support is greatly appreciated! 😄