Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

ZIP HTML app resources #63

Open
kylemathias opened this issue Jun 22, 2017 · 2 comments
Open

ZIP HTML app resources #63

kylemathias opened this issue Jun 22, 2017 · 2 comments

Comments

@kylemathias
Copy link
Member

@leonardmensah talked about a possible optimization solution for downloading the HTML resources from the nation to the take-home app. We are looking into possible .zip current and future HTML resources so that the take-home app can have smaller file size to deal with thus making it more efficient. Right now the Take Home app downloads raw files and then uses them on the device. Our hope for this issue is to download a zip and then unpack it on the device to save time and space.

OId Process:

  1. Raw HTML app gets added to the nation
  2. downloads uncompressed file

Proposed Process:

  1. .zip and raw HTML resources gets added to the nation
  2. Take Home app Downloads the .zip HTML app version
  3. Take Home Unpacks the zip.
@kanishk1010
Copy link
Member

kanishk1010 commented Jul 17, 2017

I understand that we are planning to migrate to MongoDB from CouchDB in the BeLL app. MongoDB has inbuilt compression,archiving and migration features. We can create a .gzip archive from a database or a collection.

https://www.mongodb.com/blog/post/archiving-and-compression-in-mongodb-tools

There is also an npm package called 'couchdb-dump' which enables to perform similar operation on a CouchDB database.

https://www.npmjs.com/package/couchdb-dump

@kanishk1010
Copy link
Member

I kind of misunderstood the 'migration to MongoDB' part (We are not). We can still look into implementing these features into CouchDB using the second link.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants