[Placeholder instructions for how to deploy to an Electron App -- these have not been carefully vetted but just lays out the general outlines of what you need to do. Please update with more specific instructions.]
To build and deploy an Electron app, you need to do the following.
# I. Prepare Data
As you prepare things for Ravit, go ahead and modify the `datasets/meme/*.db.js` db files directly and commit them to the repo. That sets a baseline that everyone will use.
The files in `/system/datasets/meme` would represent the starting db for your study. So if you add resources you want to edit the following two files:
`resources.db.js` is the master list of ALL the resources. You can't edit this via the admin interface, so you'll need to update this by hand.`classroomResources.db.js` defines the resources that are available to each classroom. You can actually edit this via the admin interface. Select a classroom and check the resources you want. BUT, I haven't had a chance to add this functionality yet. in the mean time, you'll have to edit it by hand.
# II. Build
On your dev machine:
a. Pull your db commits (if they're not in your local repo)
b. Download and place resources in the `boilerplate/src/app-web/static/dlc`
c. Run the packager: `npm run package`
# III. Deploy
a. Send electron app (in `boilerplate/dist/meme-darwin-x64/meme.app`) to Ravit
b. The machine running MEME may need to turn off security.
I believe she should access all the resources then.
# File Locations
`npm run electron` will load the databases in `src/system/datasets/meme/`.
`npm run dev` will load the databases in `src/system/datasets/test/`.
I believe when you run the Electron app itself, it'll initialize the database using the data in `datasets/meme/`.
The live / changed data is saved in the respective *.loki files in `/runtime`, e.g. `/runtime/meme.loki` and `/runtime/test.loki`. As are the logs. These are the files you'll want to grab.
In the electron app, I believe they are in `/Contents/Resources/runtime`.