-
Notifications
You must be signed in to change notification settings - Fork 0
Home
ferng edited this page Jan 24, 2020
·
14 revisions
- Enter and review runs, as in a regular running log, not wanting to rely on my garmin and it's website to review past data many years hence
The application uses sqlite to store data, without it an error will be logged and the application will end (to be honest, as it's effectively a db front end it's pretty much useless without a db!)
- config.js: server port, database, log location
- build bundles
# front end
npm run web-front
# backend end
npm run web-back
# package up files
./build.sh
- deploy
# copy to server
scp runlog.tar.gz user@host:runlog.tar.gz
# on server
tar -C apps/runlog -zxvf runlog.tar.gz
cd apps/runlog
npm install --only=prod
- start up runlog
nohup node bundle-back.js &
- ES6
- webpack (with babel) and webpack-dev-server for live reloading
- bunyan (testing)
- tape (logging)
- eslint (with google's style)
- vim: configuration in [github] (https://github.com/ferng/config/tree/master/visualStudioCode)
- front end
npm run web-front
- backend end
npm run web-back
- package up files
- run mongodb
- start up server:
npm start npm run start-plain
- run dev-server
npm run web-dev
- go to the webpack dev-server [page] (http://localhost:8080/webpack-dev-server/)
npm run test-back
npm run test-front
npm test
- open .vscode/launch.json
- change "program" in "Single" configuration to point to the spec you want to run
- run "Single" in the visual studio code debugger
- change configuration if appropriate (see above)
- log file currently set to (runlog.log.json)
npm run docs
npm run docs-internal