Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gogf/gf-demo-chat
A simple MVC chat service.
https://github.com/gogf/gf-demo-chat
go goframe golang httpserver mvc websocket
Last synced: about 1 month ago
JSON representation
A simple MVC chat service.
- Host: GitHub
- URL: https://github.com/gogf/gf-demo-chat
- Owner: gogf
- License: mit
- Created: 2022-02-28T13:20:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-10T06:22:23.000Z (almost 3 years ago)
- Last Synced: 2024-08-03T09:07:22.245Z (4 months ago)
- Topics: go, goframe, golang, httpserver, mvc, websocket
- Language: Go
- Homepage:
- Size: 56.6 KB
- Stars: 17
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
- awesome-gf - gf-demo-chat - (Official) GoFrame入门演示项目: 简单的MVC服务。 (StandAlone Projects)
README
# A simple MVC chat service
## Installation
### 1. You need a go development environment setup before everything starts taking off.
### 2. Use `git clone` to clone the repo to your local folder.
```
git clone https://github.com/gogf/gf-demo-chat
```### 3. Run command `go run main.go`, and you'll see something as follows if success:
```
ADDRESS | METHOD | ROUTE | HANDLER | MIDDLEWARE
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
:8199 | ALL | /* | github.com/gogf/gf/v2/net/ghttp.internalMiddlewareServerTracing | GLOBAL MIDDLEWARE
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
:8199 | ALL | /* | github.com/gogf/gf/v2/net/ghttp.MiddlewareHandlerResponse | GLOBAL MIDDLEWARE
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
:8199 | ALL | /api.json | github.com/gogf/gf/v2/net/ghttp.(*Server).openapiSpec |
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
:8199 | GET | /chat | github.com/gogf/gf-demo-chat/v2/internal/controller.(*hChat).Index |
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
:8199 | POST | /chat/name | github.com/gogf/gf-demo-chat/v2/internal/controller.(*hChat).Name |
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
:8199 | GET | /chat/websocket | github.com/gogf/gf-demo-chat/v2/internal/controller.(*hChat).Websocket |
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
:8199 | ALL | /swagger/* | github.com/gogf/gf/v2/net/ghttp.(*Server).swaggerUI | HOOK_BEFORE_SERVE
----------|--------|-----------------|------------------------------------------------------------------------|--------------------
```# GoFrame Sites
### GoFrame Repo
* [https://github.com/gogf/gf](https://github.com/gogf/gf)### GoFrame Home
* [https://goframe.org](https://goframe.org) (中文)