https://github.com/joegasewicz/bambino
🗃️ A fileserver built with gomek
https://github.com/joegasewicz/bambino
file-upload-server fileserver
Last synced: about 2 months ago
JSON representation
🗃️ A fileserver built with gomek
- Host: GitHub
- URL: https://github.com/joegasewicz/bambino
- Owner: joegasewicz
- License: mit
- Created: 2023-04-29T01:39:51.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-11T22:28:08.000Z (over 1 year ago)
- Last Synced: 2025-02-10T14:53:20.063Z (3 months ago)
- Topics: file-upload-server, fileserver
- Language: Go
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Bambino
A fileserver built with [gomek](https://github.com/joegasewicz/gomek)### Options
This is set via the query params, e.g
```bash
?options={
"files": ["cat1", "cat2", "cat3"],
"data": {},
"id": 1,
"entity_name: "User"
}
```
- files
- entity_name
- id
- data### Docker Image
Pull down bambino from the Docker registry
```
docker pull bandnoticeboard/bambino:v0.0.3
```Or select a version here - [bandnoticeboard/bambino](https://hub.docker.com/r/bandnoticeboard/bambino)
### Response POST `/files`
This is a response examples if we were to use this request url:
`http://127.0.0.1:4444/files?options={"files": ["cat1", "cat2", "cat3"], "data": {}, "id": 1, "entity_name": "User" }`
```
[
{
"id": 1,
"file_name": "cat1.png",
"name": "cat1",
"data": {},
"entity_name": "User",
"url": "http://localhost:4444/files/7/cat1",
"path": "/files/7/cat1",
"created_on": "2023-04-29 19:26:52.301456 +0100 BST"
}
... etc.
]
```
Each file is stored on the server based on the `entity_name` value set in the `options` query param.
For example, with `"User"` `entity_name` the file would be stored at `files/User/1/image.jpg`### Response GET `/files?id=1`
Get a file by ID. Response:```
{
"URL": "http://localhost:4444/uploads/cats/1/cat1.png"
}
```#### Files
`http://localhost:4444/files`#### Health
`http://localhost:4444/health`### Configuration // TODO
`bambinoconf.yaml`