Skip to content

genshun9/sample_socket_io_chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sample_socket_io_chat

設計

  • クライアント
    • react/flux
    • typescript(@types)
  • サーバ
    • node.js/express/http
    • javascript
  • 通信
    • socket.io
  • ビルド
    • parcel
      • parcelは_index.htmlの依存モジュールを全てdist配下へbundleする
      • node.jsはindex.htmlを読み込み、dist配下のbundleされたファイルを読み込む
      • node.jsがdist配下を読み込む際、index.htmlが参照するbundle.jsのパスと、node.jsから見たbundle.jsのパスが合わないので、このやり方でやり過ごす。

使い方

  • npm i
  • npm run compile-client(普段の開発は、localhost:1234を使う)
  • npm run start-server
  • localhost:3000を開く

参考

About

【完成】sample chat web application using react, flux, socket-io.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors