Skip to content

Latest commit

 

History

History
63 lines (53 loc) · 1.36 KB

README.md

File metadata and controls

63 lines (53 loc) · 1.36 KB

clique_server

Server for clique chat app built on websockets.

Install cqlsh

pip install cqlsh

Initialize DB

  1. Create scylla docker image
make scylla_build_image
  1. 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
  1. Create tables
make scylla_init
make scylla_create_tables
  1. Check if db works correctly
make scylla_cqlsh

Run the API

go get -u ./...
go mod vendor
go mod tidy
go run cmd/main.go

Endpoints

  • 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}

TODO:

  1. Check and test the middleware authorization and authentication
  2. Implement encryption between users
  3. Remodel the schema to find opportunities to remove ALLOW FILTERING