Skip to content

Latest commit

 

History

History
125 lines (84 loc) · 3.11 KB

readme.md

File metadata and controls

125 lines (84 loc) · 3.11 KB

Running the app

Copy and Edit this file to tell meteor where to save files:

cp imports/api/storagePath.default.js imports/api/storagePath.js

Installing and running the app (or start):

meteor npm install
meteor
export GOOGLE_APPLICATION_CREDENTIALS=./app/private/slidespecs.json
open http://localhost:3000

Note that you'd need to use your own Google Application credential JSON.

More on that: https://cloud.google.com/docs/authentication/application-default-credentials

Audio Concatenation (osx)

Best practices for audio recording: https://cloud.google.com/speech-to-text/docs/best-practices

transcription material: http://www.ushistory.org/declaration/document/

brew install sox
PDF Conversion (osx)
brew install gs imagemagick     # for convert
brew install --cask libreoffice # for soffice

Scripts

Linting

To lint:

meteor npm run lint

Configuration options (.eslintrc)

{
    "extends": [
        "eslint:recommended",
        "plugin:react/recommended",
        "@meteorjs/eslint-config-meteor"
    ]
}
Data Import/Export

To export data from production, use export.sh. Move the files in a location specified in import/api/storagePath.js. Import the mongoDB records into a running meteor application with mongoimport, shown in the import.sh script. Copy from remote server:

 scp -i ~/.ssh/slidespecs slidespecs.berkeley.edu:/home/jeremy/Code/slidespecs/data.tar.gz .

Installing mongodb may be required to use mongoimport: brew install mongodb

Configuration Notes

Server

etc

starting a tmux shell on boot
crontab -e              # user
sudo vim /etc/crontab   # root

relevant scripts: tmux-init.sh and start

for accessing google cloud storage
export GOOGLE_APPLICATION_CREDENTIALS=/home/jeremy/Code/SlideSpecs/app/private/slidespecs.json
checking what process is using a port
netstat -nl | grep 9000
meteor up (see mup.js)
autostart mac hardware running ubuntu on power failure