Skip to content
Build LHC-Forms and FHIR Questionnaires
Branch: master
Clone or download
plynchnlm Merge pull request #22 in LFOR/formbuilder from update-node-packages …
…to master

* commit 'e0c37f0da24ed53295e9b7e2d22a2c675d3838be':
  Fix npm audit vulnerabilities
Latest commit 14d0622 Jun 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client Fix skip logic loading with CNE/CWE triggers May 14, 2019
server
test Fix skip logic loading with CNE/CWE triggers May 14, 2019
.bowerrc Create an orphaned version to add documentation changes. Sep 24, 2018
.buildignore Create an orphaned version to add documentation changes. Sep 24, 2018
.gitattributes Update change log Oct 5, 2018
.gitignore Create an orphaned version to add documentation changes. Sep 24, 2018
.nsprc Create an orphaned version to add documentation changes. Sep 24, 2018
.travis.yml
.yo-rc.json Create an orphaned version to add documentation changes. Sep 24, 2018
CHANGELOG.md Fix npm audit vulnerabilities Jun 6, 2019
Dockerfile Create an orphaned version to add documentation changes. Sep 24, 2018
Gruntfile.js Fix npm audit vulnerabilities Jun 6, 2019
LICENSE.md
README.md Change package name Sep 28, 2018
README_docker.md Create an orphaned version to add documentation changes. Sep 24, 2018
app.js Fix skip logic loading with CNE/CWE triggers May 14, 2019
bashrc.formbuilder Fix a type, update lforms version, and fix npm security alert Feb 11, 2019
bower.json Fix npm audit vulnerabilities Jun 6, 2019
formbuilder.conf.js Fix skip logic loading with CNE/CWE triggers May 14, 2019
karma.conf.js Update with latest lforms package in bower.json Apr 16, 2019
package-lock.json Fix npm audit vulnerabilities Jun 6, 2019
package.json Fix npm audit vulnerabilities Jun 6, 2019
protractor.conf.js Fix window size for protractor tests Oct 19, 2018

README.md

Installation

  1. Install nodejs package globally on your system.

  2. Clone git repository of lforms-formbuilder.

     $ git clone https://github.com/lhncbc/formbuilder-lhcforms.git
    
  3. Change to formbuilder directory and setup environment. Edit bashrc.formbuilder file to setup necessary environment. You can make a similar rc file to suit your shell. Please make sure that ./node_modules/.bin is in your path for the rest of the installation.

     $ cd formbuilder-lhcforms
     $ npm ci
     $ source bashrc.formbuilder
    
  4. Install required bower packages:

     $ bower install
    
  5. Edit formbuilder.conf.js to configure the application for your setup.

    1. If choosing https option, specify your ssl key, certificate and authority files.
    2. Specify server's host name (or IP) and port number.
    3. Specify Google Analytics gtag tracking id.
  6. Run grunt task to generate index.html from template.

     $ grunt template
    
  7. Start formbuilder server for development.

     $ grunt serve
    
  8. Build the package for production and run.

     $ grunt build
     $ cd dist
     $ node app -env production
    
You can’t perform that action at this time.