jsdir / shchem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

shchem

Travis

Live at https://shchem.herokuapp.com

Setup

Seeding the database

Setup Postgres

Migrate

./node_modules/.bin/sequelize db:migrate

Begin uploading the compound data

For partially seeding the data locally, you can run:

npm run seed-compounds

In production, you'll want to use the job queue to seed the entire database. Change .env to the production settings, then run:

npm run seed-compounds-job

Open localhost:3000/job-queue to view the progress.

To run a partial seed, add a limit argument to process a fixed number of files. This is helpful for testing:

npm run seed-compounds-job 10

Updating the list of compound files

To update the list of component files, run:

cd seed
./generate_compound_files.sh

This pulls a list of files from ftp://ftp.ncbi.nlm.nih.gov/pubchem/Compound/CURRENT-Full/ASN/

Running the app

You need the following environment variables:

  • DATABASE_URL: path to your postgres database
  • BABEL_PATH: path to the babel binary of Open Babel
  • IDOCK_PATH: path to the idock binary of idock

Parser Information

Testing

To test everything:

npm test

To only test the client:

npm run test-client

To only test the server:

npm run test-server

Run server tests on file change:

npm run test-server -- -w

Docking

To run the worker:

  • Setup a redis instance, then:
npm run worker

Other Resources

About


Languages

Language:CSS 62.4%Language:JavaScript 19.9%Language:POV-Ray SDL 17.0%Language:Shell 0.5%Language:HTML 0.2%