Currently, the data is only stored locally in a file by the server. It would be good if we can integrate the application with a database (more specifically postgresql) and store data in the db. We would also want to save the messaging thread of a client in the database/filesystem for viewing the thread later (like a chat history).
This tasks involves:
- Adding the capability of storing data into a database (whilst keeping the option of storing data in files).
- Adding a flag for setting postgresql url to allow storing data into the database
- Adding unit tests for the added features
Currently, the data is only stored locally in a file by the server. It would be good if we can integrate the application with a database (more specifically postgresql) and store data in the db. We would also want to save the messaging thread of a client in the database/filesystem for viewing the thread later (like a chat history).
This tasks involves: