Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active April 5, 2017 05:39
Show Gist options
  • Save kjunichi/6f083fcf172a2b853ef82080c8cde85d to your computer and use it in GitHub Desktop.
Save kjunichi/6f083fcf172a2b853ef82080c8cde85d to your computer and use it in GitHub Desktop.
2017/4/4

時報

time signal

gopheron

ファイル構成案 vendor/third_party/

goのライブラリのバージョンを指定したい

glideを使うとバージョン番号での指定はできるgitのコミットハッシュの指定は不明

socket.ioの復習

main.js

socket = require('socket.io-client')('http://localhost:5050/gopheron');

viewer.js

const s = document.createElement("script");
s.src = "http://localhost:5050/socket.io.js";

socket = io('http://localhost:5050');

gopheron.go

http.Handle("/socket.io/", server)
http.Handle("/", http.FileServer(http.Dir("./asset")))

このURLは何者 socket.ioを通して、http://localhost:5050/socket.io/gopheron としてリクエストられる?

cf)

EC-CUBE

商品点数を増やす

登録した商品のバリエーションを自動的に登録する

ex)色の濃淡、サイズ大小

お客さんを作る

新しい商品を買うお客さん 古い商品を買うお客さん

関連

アクセス解析タグ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment