# chat **Repository Path**: open-im/chat ## Basic Information - **Project Name**: chat - **Description**: fork from github - **Primary Language**: Go - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-19 - **Last Updated**: 2023-10-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # chat ### Modifying configuration items Refer to `config/config.yaml` for configuration instructions ## 🧩 Awesome features 1. This repository implement a business system, which consists of two parts: User related function and background management function 2. The business system depends on the api of the im system ([Open-IM-Server repository](https://github.com/OpenIMSDK/Open-IM-Server)) and implement various functions by calling the api of the im system 3. User related part includes some regular functions like user login, user register, user info update, etc. 4. Background management provides api for admin to manage the im system containing functions like user management, message mangement,group management,etc. ## πŸ›« Quick start > **Note**: You can get started quickly with OpenIM Chat. ### πŸ“¦ Installation ```bash git clone https://github.com/OpenIMSDK/chat openim-chat && export openim-chat=$(pwd)/openim-chat && cd $openim-chat && make ``` ### Developing chat If you wish to deploy chat, then you should first install and deploy OpenIM, this [Open-IM-Server repository](https://github.com/OpenIMSDK/Open-IM-Server) ```bash git clone -b release-v3.1 https://github.com/OpenIMSDK/Open-IM-Server.git openim && export openim=$(pwd)/openim && cd $openim sudo docker compose up -d ``` Installing Chat ```bash $ make install ``` ## πŸ›« Quick start > **Note**: You can get started quickly with chat. ### πŸš€ Run > **Note**: > We need to run the backend server first ```bash $ make build # OR build Specifying binary $ make build BINS=admin-api # OR build multiarch $ make build-multiarch $ make build-multiarch BINS="admin-api" # OR use scripts build source code $ ./scripts/build_all.sh ``` ### πŸ“– Contributors get up to speed Be good at using Makefile, it can ensure the quality of your project. ```bash Usage: make ... Targets: all Build all the necessary targets. πŸ—οΈ build Build binaries by default. πŸ› οΈ go.build Build the binary file of the specified platform. πŸ‘¨β€πŸ’» build-multiarch Build binaries for multiple platforms. 🌍 tidy tidy go.mod πŸ“¦ style Code style -> fmt,vet,lint 🎨 fmt Run go fmt against code. ✨ vet Run go vet against code. πŸ” generate Run go generate against code and docs. βœ… lint Run go lint against code. πŸ”Ž test Run unit test βœ”οΈ cover Run unit test with coverage. πŸ§ͺ docker-build Build docker image with the manager. 🐳 docker-push Push docker image with the manager. πŸ” docker-buildx-push Push docker image with the manager using buildx. 🚒 copyright-verify Validate boilerplate headers for assign files. πŸ“„ copyright-add Add the boilerplate headers for all files. πŸ“ swagger Generate swagger document. πŸ“š serve-swagger Serve swagger spec and docs. 🌐 clean Clean all builds. 🧹 help Show this help info. ℹ️ ``` > **Note**: > It's highly recommended that you run `make all` before committing your code. πŸš€ ```bash $ make all ``` ### Chat Start ```bash $ make start_all # OR use scripts start $ ./scripts/start_all.sh ``` ### Chat Detection ```bash $ make check # OR use scripts check $ ./scripts/check_all.sh --print-screen ``` ### Chat Stop ```bash $ make stop # OR use scripts stop $ ./scripts/stop_all.sh ``` ## Contributing Contributions to this project are welcome! Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for details. ## Community Meetings We want anyone to get involved in our community, we offer gifts and rewards, and we welcome you to join us every Thursday night. We take notes of each [biweekly meeting](https://github.com/OpenIMSDK/Open-IM-Server/issues/381) in [GitHub discussions](https://github.com/OpenIMSDK/Open-IM-Server/discussions/categories/meeting), and our minutes are written in [Google Docs](https://docs.google.com/document/d/1nx8MDpuG74NASx081JcCpxPgDITNTpIIos0DS6Vr9GU/edit?usp=sharing). ## Who are using Open-IM-Server The [user case studies](https://github.com/OpenIMSDK/community/blob/main/ADOPTERS.md) page includes the user list of the project. You can leave a [πŸ“comment](https://github.com/OpenIMSDK/Open-IM-Server/issues/379) to let us know your use case. ![avatar](https://github.com/OpenIMSDK/OpenIM-Docs/blob/main/docs/images/WechatIMG20.jpeg) ## 🚨 License chat is licensed under the Apache 2.0 license. See [LICENSE](https://github.com/OpenIMSDK/chat/tree/main/LICENSE) for the full license text.