{"id":15096043,"url":"https://github.com/rinaldypasya/simple-messaging","last_synced_at":"2026-01-07T00:05:40.570Z","repository":{"id":57633437,"uuid":"192211116","full_name":"rinaldypasya/simple-messaging","owner":"rinaldypasya","description":"Simple REST API for Simple Messaging","archived":false,"fork":false,"pushed_at":"2019-06-16T18:42:59.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T17:44:20.079Z","etag":null,"topics":["gin-gonic","golang","gorilla-websocket","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rinaldypasya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-16T16:07:14.000Z","updated_at":"2019-06-16T18:43:01.000Z","dependencies_parsed_at":"2022-09-01T17:02:04.031Z","dependency_job_id":null,"html_url":"https://github.com/rinaldypasya/simple-messaging","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinaldypasya%2Fsimple-messaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinaldypasya%2Fsimple-messaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinaldypasya%2Fsimple-messaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinaldypasya%2Fsimple-messaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rinaldypasya","download_url":"https://codeload.github.com/rinaldypasya/simple-messaging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245852803,"owners_count":20683096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gin-gonic","golang","gorilla-websocket","rest-api"],"created_at":"2024-09-25T15:45:12.165Z","updated_at":"2026-01-07T00:05:40.544Z","avatar_url":"https://github.com/rinaldypasya.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Simple Messaging Application written in Go\n\n## Requirement and Dependencies\n\n- [websocket](https://github.com/gorilla/websocket) - `go get github.com/gorilla/websocket`\n- [gin](https://github.com/gin-gonic/gin) - `go get github.com/gin-gonic/gin`\n- [gin-cors](https://github.com/itsjamie/gin-cors) - `go get github.com/itsjamie/gin-cors` \n- [mysql-driver](https://github.com/go-sql-driver/mysql) - `go get github.com/go-sql-driver/mysql`  \n- [gorm](https://github.com/jinzhu/gorm) - `go get github.com/jinzhu/gorm`\n\n## Installation Guide\nBefore installing and running this app, make sure you have install [Go](https://golang.org/doc/install). After Go is installed, Follow these steps:\n\n### Linux/Mac\n- Set your [gopath](https://til.codes/how-do-i-set-the-gopath-environment-variable-on-ubuntu/) somewhere in your filesystem, preferably in /home.\n- After setting up gopath, create 3 main folder inside gopath. For example, if your gopath is /home/user/go, then create these 3 folder under that go folder:\n    - bin/\n    - pkg/\n    - src/\n- Then, open terminal inside your gopath(e.g /home/user/go). Then get this app by using commands:\n    \u003e`go get github.com/rinaldypasya/simple-messaging`\n- The codebase for the app will be downloaded inside `src/` folder inside your gopath.\n- After codebase downloaded, change directory to that app -\u003e e.g \n    \u003e`cd $GOPATH/src/github.com/rinaldypasya/simple-messaging`\n- Install/Build the app from source to build the executable and packages object by using this command\n    \u003e`make build` (assuming you're already inside the app folder path)\n\n- After finishing installing/building run the app by calling the name of app folder(where main package reside), in this case, if you're inside the app path, just call the name of the app:\n    \u003e`./simple-messaging`\n    \n- If program installed and run successfully, the routing informations will be showed on the terminal showing all API endpoints registered inside router. The port used is :8000, so access it by calling \n\n    \u003e`localhost:8000/\u003cendpoints\u003e`\n\n### Windows\n\nFor installation on Windows, after installing the Go you're required to install **MinGW-64 GCC** because some of depedencies depend and compiled only by gcc 64 bit version, and on Windows you have to use [MinGW64](https://sourceforge.net/projects/mingw-w64/). Remember to download, install, and activate the **64 bit version**.\n\nAfter installing Go and MinGW64, set [gopath in windows](https://github.com/golang/go/wiki/SettingGOPATH#windows).\n\nAfter setting up the gopath, make sure the gopath set successfully by calling this command in command prompt:\n    \u003ego env\n\nIf the gopath set and match with the one you set, the rest of the steps are the same with the Linux/Mac. Follow them one by one and you're all set.\n\n### Rebuilding and Cleaning\n\nPlease typing command in project root folder:\n\n- Clean\n\n    \u003e`make clean`\n\n- Rebuild and clean\n\n    \u003e`make rebuild`\n\n### Endpoints\n- Send Message\n\n    \u003eSend POST: `/message/send`\n\n- Get All Messages\n\n    \u003eGetMessages GET: `/messages`\n\n- Websocket for real-time API    \n\n    \u003eWebsocket GET: `/ws`\n\n---\nThat's all. Thank you and if you have any problems or questions, reach me an email at **rinaldypasya@gmail.com**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinaldypasya%2Fsimple-messaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frinaldypasya%2Fsimple-messaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinaldypasya%2Fsimple-messaging/lists"}