# yfcmf-go **Repository Path**: nymondo/yfcmf-go ## Basic Information - **Project Name**: yfcmf-go - **Description**: yfcmf go语言版本 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-09-21 - **Last Updated**: 2023-01-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GoFrame Demos This repo implements some demos using GoFrame. 1. A simple websocket chat service. 1. Basic API example for user SignUp/SignIn. 1. Universal CURD service. ## Installation ### 1. You need a go development environment setup before everything starts taking off. ### 2. Use `git clone` cloing the repo to your local folder. ``` git clone https://yfcmf-go ``` ### 3. Create configuration file from `config.example.toml`. ``` cp config/config.example.toml config/config.toml ``` Update `config.toml` according to your local configurations if necessary. ### 4. Run command `go run main.go`, and you'll see something as follows if success: ``` SERVER | DOMAIN | ADDRESS | METHOD | ROUTE | HANDLER | MIDDLEWARE |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /chat | yfcmf-go/app/api/chat.(*Controller).Index | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /chat/index | yfcmf-go/app/api/chat.(*Controller).Index | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /chat/setname | yfcmf-go/app/api/chat.(*Controller).SetName | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /chat/websocket | yfcmf-go/app/api/chat.(*Controller).WebSocket | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /curd/:table/all | yfcmf-go/app/api/curd.(*Controller).All | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /curd/:table/delete | yfcmf-go/app/api/curd.(*Controller).Delete | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /curd/:table/one | yfcmf-go/app/api/curd.(*Controller).One | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /curd/:table/save | yfcmf-go/app/api/curd.(*Controller).Save | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /curd/:table/update | yfcmf-go/app/api/curd.(*Controller).Update | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /user/checknickname | yfcmf-go/app/api/user.(*Controller).CheckNickName | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /user/checkpassport | yfcmf-go/app/api/user.(*Controller).CheckPassport | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /user/issignedin | yfcmf-go/app/api/user.(*Controller).IsSignedIn | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /user/profile | yfcmf-go/app/api/user.(*Controller).Profile | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /user/profile | yfcmf-go/app/api/user.(*Controller).Profile | middleware.CORS,middleware.Auth |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /user/signin | yfcmf-go/app/api/user.(*Controller).SignIn | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /user/signout | yfcmf-go/app/api/user.(*Controller).SignOut | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| default | default | :8199 | ALL | /user/signup | yfcmf-go/app/api/user.(*Controller).SignUp | middleware.CORS |---------|---------|---------|--------|---------------------|-------------------------------------------------------------------|---------------------------------| ``` # GoFrame Sites ### GoFrame Repository * [https://github.com/gogf/gf](https://github.com/gogf/gf) * [https://gitee.com/johng/gf](https://gitee.com/johng/gf) ### GoFrame Home * [https://goframe.org](https://goframe.org)