-
Notifications
You must be signed in to change notification settings - Fork 1
Dataset Editing for Curriculum Development
Congratulations, you're creating dataset for use in the classroom! But how do you do it? These instructions will give you a starting place.
Each app is its own self-contained world, with its own datasets to initialize from and its own meme.loki database.
CURRENT REQUIREMENTS
- You must have the MEME development environment installed
- Use Visual Studio Code (VSC)
- If you want to run the pacakged Electron app on another computer, you will have to get an Apple Developer ID and set up code signing. (But you can still use the Electron app if you disable the security feature.)
I recommend using Visual Studio Code and its built-in terminal.
- Run Visual Studio Code
- FILE->OPEN WORKSPACE
meme-boilerplate.code-workspace
in the repo - type
CTRL ~
(tilde) to open the terminal, which will have a working path in the root level of the repo
Here's what you need to do to prepare the combined package of the Electron app and project data for sharing to other sites.
Overview
- Decide on a template
- Prepare resources
- Customize starting project
- Package and Sign
- Fix Quarantine Flag
- Test Other Computers
- Zip, Copy, and Distribute
Generally you would start with the __blank
template. If you want to use another template, see II. Prepare Default Template for more information.
Do an initial compile to build the meme.loki
file to review the starting setup.
npm run electron
http://localhost/#/admin
Add any classrooms, teachers, student groups, and students you want to share across all copies.
Add any ratings definitions, criteria for a good model, sentence starters, and resource definitions.
If you want to add a starting demo project, login and create a model.
If you start with the _blank
template, any resources already defined in /<repodir>/templates/_blank/resources/*.*
will be copied over.
If you want to add additional resources add them to /<repodir>/dist/MEME macOS/resources/*.*
.
Edit the resource definitions in admin interface.
npm run electron # build the `meme.loki` file from `*.db.js` files and run Electron locally (if you haven't already run this)
npm run package # build the the distribution files for `meme.app` Electron app
This will populate the <repodir>/dist/MEME macOS/
folder with the electron app, database files, and resources.
Code sign the app so that you can start the app without having to disable security.
npm run appsign # code sign the `meme.app`
npm run app # or double click on `meme.app`
Run the app to make sure it looks right.
In addition to codesigning, if you want to copy the Electron app to another machine, you need to run a install.sh
script.
- Build the electron app (
npm run package
) and copy the/dist/MEME macOS folder
to your new computer/new location, e.g. to~/Desktop/MEME macOS
. - Open a terminal.
cd ~/Desktop/MEME macOS
./install.sh
- The quarantine flag should now be fixed.
- Double click the meme.app Electron application to start the server to make sure it works.
- If you see javascript error, then the quarantine flag was probably not removed successfully. Try typing
xattr meme.app
-- you should NOT see the linecom.apple.quarantine
If you copy the app to another computer you may have to run./install.sh
again.
Make sure everything works. Make sure you test:
- Intel Macs
- Apple Silicon Macs (M1, M2)
- Older macOS versions that you might be running on
Once everything is set you can zip the <repodir>/dist/MEME macOS/
folder and copy the zip file to another computer.
Unzip it to run it.
User Manual
Developer Manual
Installation
Setting Up End-User Projects
Deploying
- Deploy Electron
- Electron Code Signing README-signing.md
- Digital Ocean Deployment
- Updating MEME for 2021+
--
Coding Practices
Background
Design Notes
- Dev Insights
- Design Data Management
- Student Login
- Reference Build Differences
- Design Settings Manager
- Why Electron?
Deprecated