Git Product home page Git Product logo

gae-go-uploader's Introduction

gae-go-uploader

GAE/GoとGoogleCloudStorageで動作するイメージアップローダー

How to Deploy your GAE

Current directory is /path/to/git/gae-go-uploader

  1. Open ./src/uploader/settings/constant.go.
  2. Edit GCS_PUBLIC_ACCESS_PATH.
  3. goapp deploy ./src
  4. Enjoy!

How to Develop

前提条件として$GOPATH/path/to/git/gae-go-uploaderを含むようにしておくか、direnvを導入しておく

frontendフォルダは、AngularJSで書かれたフロントエンドのコードが管理されています。 goappフォルダには、GAE/Goで使用されるバックエンドのコードが管理されています。

Live Reloadしながらfrontendを編集するには・・・

  1. Open terminal
  2. goapp serve src
  3. Ctrl+T to New Tab in Terminal
  4. cd frontend
  5. gulp serve (or gulp only)

あとGCSを全面的に使うことになったので、ローカルで検証するには以下のコマンドが必要。 詳しくは: https://cloud.google.com/appengine/docs/go/googlecloudstorageclient/sample-deploy-run#running_the_storage_example_locally

/path/to/AppEngSDK/dev_appserver.py . \
--appidentity_email_address <your_app_email_address>@developer.gserviceaccount.com \
--appidentity_private_key_path pem_file.pem

Convert the key from pkcs12 to pkcs1 (PEM).

$ cat /path/to/xxxx-privatekey.p12 | openssl pkcs12 -nodes -nocerts -passin pass:notasecret | openssl rsa > /path/to/secret.pem

ACL設定

デプロイには関係ないけど備忘

  1. gsutil defacl ch -u AllUsers:R gs://BUCKET_NAME

gae-go-uploader's People

Contributors

keima avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.