This is the repository responsible for Chats apps.
To work properly, fill in the .env
file. Use the .env.example
file as an example.
npm install
at the root- Fill ENVs
npm run start:dev
- Enjoy ❤️
- express — a backend framework.
- axios - making request to quotes api
- mongoDB - a NoSQL database
- socket.io - a real-time communication library.
erDiagram
User {
uuid id PK
varchar firstName
varchar lastName
varchar email
varchar password
timestamp createdAt
timestamp updatedAt
}
Chat {
uuid id PK
varchar firstName
varchar lastName
uuid[] messages FK
}
Message {
uuid id PK
enum senderRole
varchar text
uuid chatId FK
timestamp timestamp
}
%% Relationships
Chat ||--o{ Message : contains
Message ||--|| Chat : chatId