Skip to content

Latest commit

 

History

History
44 lines (39 loc) · 872 Bytes

README.md

File metadata and controls

44 lines (39 loc) · 872 Bytes

Backbone RNA database

How to use it:

Add data to PostgreSQL:

sudo -u postgres psql < shmirdesignercreate.sql

Install requirements:

pip install -r requirements.txt

Create file named settings.py which contains global variables: DB_NAME, DB_USER, DB_PASS, DB_HOST, DB_PORT:

DB_NAME = 'shmird'
DB_USER = 'postgres'
DB_PASS = 'mypassword'
DB_HOST = '127.0.0.1'
DB_PORT = '5432'

Run server:

./main.py

RESTful API will be available at http://127.0.0.1:5000/

Methods - all require POST request and answer with JSON data:

  • /get_all
  • /get_by_name/data
  • /get_by_mirna_s/data - only two first letters
  • /mfold/data

Set up new urls in:

  • shmir_designer/mfold.py:
URL = 'http://127.0.0.1:5000/mfold'
  • shmir_designer/backbone.py:
HOST = 'http://127.0.0.1:5000/'

Back