Skip to content

Ensembl/ensembl-metadata-registry

Repository files navigation

Ensembl Metadata Registry

Documentation Status Build Status

Provides REST data access to ensembl-metadata database over HTTP

Requirements

  • Python 3.6+
  • virtualenvwrapper
  • MySQL 5.6+

Installation

Clone the project from git

git clone https://github.com/Ensembl/ensembl-metadata-registry.git

Create the Python environment

mkvirtualenv emrenv -p /usr/bin/python3
workon emrenv

cd metadata_registry
pip install -r requirements.txt 

Provide the right credentials to connect to the ensembl-metadata database in secrets.py

cd metadata_registry/settings
cp secrets_template.py secrets.py
# Update ensembl_metadata/settings/secrets.py with a SECRET_KEY and database details.

Create an environment variable for the settings

export DJANGO_SETTINGS_MODULE=metadata_registry.settings.base

Run the migrate step, for a pre-existing database

./manage.py migrate --fake-initial

Start the development server

 ./manage.py runserver 0:9000

Check in the browser

http://localhost:9000/

About

REST API for ensembl-metadata

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published