Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashurai/fileuploader
A Go / Golang demo application to upload files using bytes and FormFile with Mongo implementation. With Helper handler and model structure design
https://github.com/ashurai/fileuploader
go golang mongodb
Last synced: about 2 months ago
JSON representation
A Go / Golang demo application to upload files using bytes and FormFile with Mongo implementation. With Helper handler and model structure design
- Host: GitHub
- URL: https://github.com/ashurai/fileuploader
- Owner: ashurai
- Created: 2020-04-26T11:25:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T05:30:54.000Z (over 4 years ago)
- Last Synced: 2023-08-01T20:11:29.905Z (over 1 year ago)
- Topics: go, golang, mongodb
- Language: Go
- Homepage:
- Size: 160 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fileUploader
A Go / Golang demo application to upload files using bytes and FormFile with Mongo implementation. With Helper handler and model structure design### Checkout on your local using clone or just ``` go get https://github.com/ashurai/fileUploader```
##### Before running application make sure on your local go V1.12.* or above is availabel and mongoDB setup is running with default configuration.
##### To start running application just hit ``` go run main.go``` from cli
### Avaialable Endpoints
#### POST localhost:8090/upload
Using postman or brower post method with the help of curl / javascript#### GET localhost:8090/files/1
To list out all the files with local directory, and id's along with pagination, per page only 5 records are supported for now