Hey guys,
my project for learning meteor is document management system (DMS) for my company. The biggest challenge i am solving right now is how to design my data model.
My project looks a lot like this one https://medium.com/@s_eschweiler/how-to-build-web-apps-ultra-fast-with-meteor-iron-scaffolding-and-automatic-form-generation-11734eda8e67 I want to be able to create document templates, and after that to insert data into that templates and update it using autoform.
The route structure will be like this:
- listAllDocumentTemplates
- document/create (from template)
- document/id/update
- document/id/generatePDF
I want to be able to do some data processing on the documents like list all documents created in last week, or list all documents from Acounting documentTemplate which have accountant with name Peter Johnson. All form processing will be done using Collection2 and Autoform packages.
Two competing solutions is to create each documentTemplate as a seperate collection (i will have to do the news collection for each document and i won t be able to do the data analysis and processing) eg. Accounting, Procurement or to create just two collections documentTemplate, generatedDocument with one to many realtionship(i wont be able to create quickform for each package to insert and update database).
I would prefer the second solution with just two collections, but do not know how to implement simple insert and update using autoform and quickform.