bobafett

command module
v0.0.0-...-9185dcb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2017 License: MIT Imports: 14 Imported by: 0

README

Bobafett - Go S3 Microservice

Go Report Card GoDoc Build Status CodeCov

Local

Setup
  • brew update
  • brew install go
  • brew install glide
  • brew install libmagic
  • setup GOPATH for your env file (.bashrc or .zshrc):
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
  • git clone this repo into ~/go/src
  • glide install in the local folder
  • go get github.com/codegangsta/gin to install the reloading dev server
Config
  • rename config.bak to config.json
  • add the proper keys - AWS_SECRET_TOKEN is optional
Run
  • gin in the project folder
Upload
  • POST to localhost:3000/upload with the file key and folder key
  • will return a s3 url or an error
Download
  • GET to localhost:3000/download with the file param encoded
  • will return a streamed file or an error
Tests
  • go test in the project folder
Docker
  • a docker file is provided that will build the project - you can use a config or set ENV VARS at your discretion

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL