Server for clique chat app built on websockets.
Install cqlsh
pip install cqlsh
- Create scylla docker image
make scylla_build_image
- Set request capacity and run the db
make set_request_capacity # run this command only the first time running the db or after rebooting the system
make scylla_new_dangerous
wait for the three nodes to be set up properly, until the status of all the three racks in UN.
make scylla_nodestatus
- Create tables
make scylla_init
make scylla_create_tables
- Check if db works correctly
make scylla_cqlsh
go get -u ./...
go mod vendor
go mod tidy
go run cmd/main.go
localhost:5050/auth/signup
localhost:5050/auth/login
localhost:5050/auth/logout
localhost:5050/chat/create_room
localhost:5050/chat/join_room
localhost:5050/chat/leave_room
localhost:5050/chat/delete_room
localhost:5050/chat/create_channel
localhost:5050/chat/delete_channel
localhost:5050/ws/create_direct_channl
localhost:5050/ws/join_channel/{channel_id}
localhost:5050/chat/fetch_messages/{channel_id}
- Check and test the middleware authorization and authentication
- Implement encryption between users
- Remodel the schema to find opportunities to remove
ALLOW FILTERING