nodejs + organic implementation of varnalab site [DEPRECATED]
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
context
dna
lib
plasma
public
scripts
tests
uploads
.editorconfig
.gitignore
Gruntfile.js
README.md
index.js
package.json
varnalab.org-production.js
varnalab.org-staging.js

README.md

DEPRECATED in favor of https://github.com/VarnaLab/varnalab-static

varnalab.org

install

  1. install nodejs v0.10.24 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