Code Monkey home page Code Monkey logo

back-me-server's People

Contributors

fumi107 avatar kkmory avatar nakao107107 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

back-me-server's Issues

タグのサジェストを自動化する

以下妄想

  • AWS recognition に画像を食わせる
  • 戻ってきたタグ候補から、確度の高いものから順に n 件取得
  • そのままだとタグが英語になってしまうので、日本語に翻訳
  • 翻訳されたタグ n件 を返す

タグ付機能の仕様確定

タグ付け機能の仕様確定

今の認識

  1. ユーザーが完成画像(Image)をアップロード
  2. アップロードされた画像をもとにタグをサジェストする(が今は全件返す)
  3. ユーザーはサジェストされたタグを選択する or 自分で任意に入力して設定する
  4. tags: ['なんとか', 'ほげ'] みたいに複数サーバーに送信される
  5. サーバー側では、Image-Tag の中間テーブルでタグ情報を保存する

CIにより自動でデプロイされるのは、master ブランチのみに限定する

これまでは、master develop のブランチに対する変更を検知してデプロイを行っていたが、
これ以降デプロイされるのは master ブランチに変更が入ったときだけに限定したい。

理由

  • GAE に古いバージョンがどんどん溜まっていって、古いのを削除していくのが面倒なため
  • 機能改善/リファクタフェーズに入ったので、1PRごとに Release が走るのはやめていいかなと思いました。

テンプレートのエンドポイントの仕様決める

Struct

type Template struct {
  Id int
  Uuid string
  BackGroundUrl string
  Tags []string
  GeneratedSampleUrl string
}

POST /templates

Request

{
 "background_url": "https://s3url.com/",
 "tags": [
    "abc", "def", "ghi"
  ],
 "generated_sample_url": "https://s3url.com/"
}

Response

{
   "id": 4,
   "uid": "0000XSNJG0MQJHBF4QX1EFD6Y3",
   "background_url": "https://s3url.com/",
   "tags": [
      "abc", "def", "ghi"
    ],
   "generated_sample_url": "https://s3url.com/"
}

GET /templates

Query String

  • keywords : 文字列

Response

{
  "templates": [{
   "id": 4,
   "uid": "0000XSNJG0MQJHBF4QX1EFD6Y3",
   "background_url": "https://s3url.com/",
   "tags": [
      "abc", "def", "ghi"
    ],
   "generated_sample_url": "https://s3url.com/"
  }],
  "paginate": {
  } 
}

GET /templates/:id

Response

{
   "id": 4,
   "uid": "0000XSNJG0MQJHBF4QX1EFD6Y3",
   "background_url": "https://s3url.com/",
   "tags": [
      "abc", "def", "ghi"
    ],
   "generated_sample_url": "https://s3url.com/"
}

Memo

uidの生成にはULID https://github.com/oklog/ulid を使用する

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.