Skip to content

mandywil/p3_web

This branch is 1403 commits behind PATRIC3/p3_web:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 2, 2018
58a8683 · Jan 2, 2018
Oct 11, 2016
Mar 15, 2016
May 25, 2017
Jan 2, 2018
Jan 25, 2017
Dec 19, 2017
Mar 1, 2017
Aug 18, 2017
Jun 1, 2017
Sep 21, 2016
Jun 1, 2017
Aug 3, 2015
Jun 1, 2017
Dec 4, 2017
Apr 27, 2017
Dec 13, 2017
Sep 2, 2016
Aug 2, 2016
Nov 28, 2016
Dec 20, 2017

Repository files navigation

PATRIC 3 WebApp

Requirements

node (6.x LTS) https://nodejs.org or

// macOS
brew install node@6

// centos
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
yum -y install nodejs

redis (3.2+) http://redis.io/ or

brew install redis

Installation

git clone --recursive  https://github.com/PATRIC3/p3_web.git
cd p3_web
npm install
cp p3-web.conf.sample p3-web.conf  (and edit as necessary)

If you cloned without --recursive flag,

cd p3_web
npm install
git submodule update --init
// Note: git submodule fetches a module in node_modules directory. So npm install first!

Authentication config for development

In ./p3-web.conf, place a token and user id/name as follows:

{
    "devAuthorizationToken": "token",
    "devUser": {
        "id":"user@patricbrc.org",
        "name": "user name"
    }
}

Note: authentication is stored as a session cookie. You can clear it via your browser devtools if needed.

Running

redis-server &
npm start 

Note: if any configuration changes are made (i.e., changes to ./p3-web.conf), then ./bin/p3-web must be restarted.

Contributing

Please refer this doc for contribution.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.9%
  • CSS 14.4%
  • HTML 7.4%
  • XSLT 0.1%
  • PHP 0.1%
  • CoffeeScript 0.1%