Open pniedzwiedzinski opened 4 years ago
I think that's a lot better solution - filesystem isn't a good database. We may also add the MongoDB image to our Docker image, so everything could be deployed simultaneously.
The substitutions have a strict format so I don't think we need to use a NoSQL database for that.
I draft this few requirements for the new system:
Maybe we could migrate our backend from Flask to Django. The reason is that in Django we will have an admin panel and easy way to make controllers and migrations.
And we could use Django admin to update / remove substitutions
I created a new branch for this epic feature - django
So far we are uploading the substitutions by sending the html file via scp to specific localization. But the bottleneck of this solution is that we want to store substitutions for multiple days, which may not be in one file. Also, we want to parse file during the import process, instead of parsing it each time the page refreshes.
I was thinking about creating an endpoint for submitting a new file. This file would be parsed and added to some sort of database.
This would resolve #5 and #54 (since we no longer be handling files)
What do you think about it?