Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

metaspace2020/sm-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project has been migrated into https://github.com/metaspace2020/metaspace

CircleCI

sm-webapp

Web application for browsing results produced by sm-engine.

Installation

  • Clone the repository with --recursive flag.
  • Run yarn install
  • Create conf.js using the provided conf.js.template (used by the backend, all secrets are kept here)
  • Create src/clientConfig.json using the provided template (this is used by the frontend)
  • Run node deref_schema.js > src/assets/metadata_schema.json (FIXME: do it through webpack)

Running in development mode

NODE_ENV=development nodemon server.js

This will take care of hot reloading after both server and client code changes.

Running in production

First, execute yarn run build to get the minified bundles in the dist/ directory.

Then set NODE_ENV accordingly and run server.js, e.g.

NODE_ENV=production forever start -l forever.log -o out.log -e err.log -c "nodemon --exitcrash" server.js

Funding

This project is funded from the European Horizon2020 project METASPACE (no. 634402), NIH NIDDK project KPMP and internal funds of the European Molecular Biology Laboratory.

License

This project is licensed under the Apache 2.0 license.