Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timopattikawa/app-chat
For Jubelio Test Chat App
https://github.com/timopattikawa/app-chat
Last synced: about 15 hours ago
JSON representation
For Jubelio Test Chat App
- Host: GitHub
- URL: https://github.com/timopattikawa/app-chat
- Owner: timopattikawa
- Created: 2023-10-28T09:27:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-30T05:09:36.000Z (about 1 year ago)
- Last Synced: 2023-10-30T10:29:33.727Z (about 1 year ago)
- Language: Go
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Noted Pembuatan Aplikasi:
1. List Penggunaan REST:
- Registrasi dan authentikasi User
- Pengiriman chat dengan REST
- search history chat by id
2. Database menggunakan supabase untuk chat dan data user
3. Postgres Local untuk menyimpan history chat## Keamanan:
- menggunakan JWT
- durasi exp 24 jam### END POINT:
- `/registration` => Body json{username: string, password: string}
- `/auth` => Body json{username: string, password: string}
- `/message/send` => Body json {Sender : uint, Receiver: uint, Message: string}
- `/message/history/?receiver={id}&sender={id]````UNTUK WEBSOCKET DIGUNAKAN KETIKA ADA SEND MESSAGE PADA SERVICE DIMANA LANGSUNG DIMASUKAN KEITKA ADA INSERT CHAT BARU```
## Database
```
TABLE CHAT (
ID INT,
SENDER INT,
RECEIVER INT,
MESSAGE STRING,
CREATE_AT TIMESTAMP
)
```Libraries Used:
- go get github.com/gofiber/contrib/websocket
- go get github.com/overseedio/realtime-go
- go get github.com/stretchr/testify/assert
- go get github.com/golang-jwt/jwt
- go get "github.com/gorilla/websocket"
- go get github.com/lib/pq
- go get github.com/gofiber/jwt/v2
- go get gopkg.in/DATA-DOG/go-sqlmock.v1