Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1013 Bytes

README.md

File metadata and controls

45 lines (28 loc) · 1013 Bytes

varnalab.org

install

  1. install nodejs or use nvm
  2. git clone git@github.com:VarnaLab/varnalab.org.git
  3. cd varnalab.org && npm install
  4. node varnalab.org.js
  5. setup /dna/secrets.json
  6. setup /accesstoken.json
  7. goto http://localhost:8080

scripts

Every .js in /scripts folder can be executed via node, example

$ node scripts/import-blogposts

import old blogposts from blogger

$ node scripts/import-blogposts

release develop to master branch

$ npm run release

release to staging

$ node scripts/upgrade-staging.js

release to production

$ node scripts/upgrade-production.js

prebuild all js/css assets

$ CELL_MODE=staging node scripts/prebuild-assets.js

change default launch port

$ PORT=1337 node varnalab.org

run tests

  1. setup /dna/_test/secrets.json
  2. setup /accesstoken.json to match the same value as within tests/helpers/index.js