https://github.com/pranosa/shoppinglistmediaservers
https://github.com/pranosa/shoppinglistmediaservers
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pranosa/shoppinglistmediaservers
- Owner: PranoSA
- Created: 2023-09-01T20:25:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-24T03:14:06.000Z (over 2 years ago)
- Last Synced: 2025-06-27T22:05:55.183Z (12 months ago)
- Language: TypeScript
- Size: 247 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ShoppingListMediaServers
SELECT column_name,kind FROM system_schema.columns WHERE keyspace_name='shopping' AND table_name='me
ssages';
# Schema Setup
## Elasticsearch ->
### Index : Chat_Messages
#### Shopping List-Chats : Schema
chat_id "uuid of chat"
message_id : number,
sendor "sender in chat"
content "text"
sent : date
## Cassandra ->
Used To Store Information About Groups, their Users, and Messages About Groups
### Keyspace : shopping_list
#### Shopping List : Users
user :
pfp text
username text
id text
One:Many Relationship stored in the Row, Rewritten Every time a new user is added
PK(groupid)
created_at: timestamp
users : []users
#### Shopping List : Messages
PK(groupid) -> UUID
SK(messageid) -> Snowflake
groupid : uuid of group
messageid : snowflake id of message
creator : uuid of creator who created it
timestamp : originally sent timestamp (redundant kind of)
content : Message Content
group_id, timestamp, content, creator
Each Message is Appended And Can Be Edited / Rewritten
https://swagger.io/docs/specification/describing-responses/
https://www.npmjs.com/package/openapi-typescript
https://www.npmjs.com/package/express-openapi-validator
https://hackernoon.com/setting-up-kafka-on-docker-for-local-development