GithubHelp home page GithubHelp logo

miyuki0 / living-meta-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jacekkopecky/living-meta-analysis

0.0 2.0 0.0 1 MB

A tool for supporting living and collaborative meta-analysis.

License: MIT License

JavaScript 50.90% HTML 39.24% CSS 9.86%

living-meta-analysis's Introduction

living-meta-analysis

A tool for supporting living and collaborative meta-analysis.

pre-requisites

  • node.js and npm (version TBS)

installation and running

  1. clone the repo
  2. npm install
  3. fill in google-datastore-specific settings in server/config.js
  • the above needs an authentication key pointed at by config.gcloudProject.keyFilename โ€“ this is generated for you by the Google developer console
  1. change webpages/js/auth.js to include your own client ID also generated by Google
  2. fill in HTTPS settings, or comment out HTTPS-specific parts of config.js to run on HTTP only
  3. npm start

production server updating

ssh lima
sudo login -f lima
cd living-meta-analysis
# do not forever stop server
git stash
git pull
git stash apply
git diff -u              # review everything
npm install              # if package.json has changed
forever restart server   # if server has changed
logout                   # so we don't have a hanging terminal to the server

invite codes

For now with ./invites.txt to generate an invite, append a line like this:

random-code-12345 # 2017-02-28 generated for Cochrane workshop attendees

use the script geninvite to generate invites, e.g.

for pom in `seq 1 100`; do geninvite "for Cochrane workshop attendees and other invitees"; done >> invites.txt

Then print them with LiMA's print page.

Source of geninvite:

#!/bin/bash

code=''
while grep -q "$code" invites.txt
do
  code=`uuidgen`
  code=${code##*-}
done

echo $code '#' `date +"%Y-%m-%d %H:%M"` $1

database dumps and restores

We have server-side datastore dump and restore scripts. They communicate directly with the datastore as configured in config.js; the LiMA server should be down while the restore script is running.

To dump the currently configured data store:

npm run db-dump > dumpfile

To restore from a dumpfile, first stop LiMA server, then run the following:

npm run db-add < dumpfile

After restoring data, start LiMA server again and it should see the new data.

living-meta-analysis's People

Contributors

jacekkopecky avatar jnnybrrn avatar miyuki0 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.