8000 GitHub - jackyh1999/simple_chatroom
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jackyh1999/simple_chatroom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

說明文件

設計目標

  1. UI上允許多個user使用
  2. 文字聊天室必備的text area和send button
  3. 按下send之後要考慮的問題
    1. message event要包含的資訊 : event type, user info, text
    2. 要以何種方式傳遞訊息 : JSON格式的string
    3. 如何和後端溝通 : Websocket
  4. 考慮未來可能的擴充並保持程式的彈性
    1. login page功能擴充
    2. user info增加
    3. 各個UI的改動

檔案目錄

/main.go : 後端主程式(測試用,port:5000)

/go.mod : 需要的module

/go.sum : 存module的checksum

/template/html/reg.html : 聊天室前導頁面,像是讓user輸入暱稱等

/template/html/index.html : 聊天室主頁面

/template/assets/ : 存放相關的.js檔、.css檔

測試環境

  • Chrome 99.0.4844.74
  • Go 1.18

功能展示

參考資料

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0