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
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
brew install gs imagemagick # for convert
brew install --cask libreoffice # for soffice
To lint:
meteor npm run lint
Configuration options (.eslintrc
)
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"@meteorjs/eslint-config-meteor"
]
}
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
- SSL/HTTPS
- todo
- https://github.com/tozd/docker-meteor
- run in 'production' mode
- nginx:
/etc/nginx/
- load conf:
sudo nginx -s reload
- see also nginx.conf and slidespecs.nginx
crontab -e # user
sudo vim /etc/crontab # root
relevant scripts: tmux-init.sh and start
export GOOGLE_APPLICATION_CREDENTIALS=/home/jeremy/Code/SlideSpecs/app/private/slidespecs.json
netstat -nl | grep 9000
meteor up (see mup.js)
- http://meteor-up.com/docs.html#mongodb
- http://meteor-up.com/getting-started.html
- npm install -g mup
- http://www.macfreek.nl/memory/Reboot_Mac_running_Linux_after_power_failure
- https://superuser.com/questions/212434/how-to-reboot-after-power-failure-for-mac-mini-running-ubuntu
- https://smackerelofopinion.blogspot.com/2011/09/mac-mini-rebooting-tweaks-setpci-s-01f0.html
- https://askubuntu.com/questions/99263/use-setpci-to-restart-ubuntu-server-after-power-failure-on-macbook
- https://www.intel.com/content/www/us/en/io/io-controller-hub-10-family-datasheet.html