Giter VIP home page Giter VIP logo

share's Introduction

SHARE v2

SHARE is creating a free, open dataset of research (meta)data.

Gitter

Technical Documentation

http://share-research.readthedocs.io/en/latest/index.html

On the OSF

https://osf.io/sdxvj/

Setup for testing

It is useful to set up a virtual environment to ensure python3 is your designated version of python and make the python requirements specific to this project.

mkvirtualenv share -p `which python3.5`
workon share

Once in the share virtual environment, install the necessary requirements.

pip install -r requirements.txt

docker-compose assumes Docker is installed and running. docker-compose up -d web creates and starts containers for elasticsearch, rabbitmq, and postgres. Finally, ./up.sh ensures everything has been installed properly.

docker-compose up -d web
./up.sh

---------------- or ----------------

pg
createuser share
psql
    CREATE DATABASE share;
python manage.py makemigrations
python manage.py maketriggermigrations
python manage.py makeprovidermigrations
python manage.py migrate
python manage.py createsuperuser

Run

Run the API server

python manage.py runserver

Run Celery

python manage.py celery worker -l DEBUG

Populate with data

This is particularly applicable to running ember-share, an interface for SHARE.

Harvest data from providers, for example

./manage.py harvest com.nature --async
./manage.py harvest io.osf --async

Pass data to elasticsearch with runbot. Rerunning this command will get the most recently harvested data. This can take a minute or two to finish.

./manage.py runbot elasticsearch

Build docs

cd docs/
pip install -r requirements.txt
make watch

share's People

Contributors

chrisseto avatar erinspace avatar icereval avatar aaxelb avatar laurenbarker avatar fabianvf avatar ssjohns avatar efc avatar fayetality avatar jeffspies avatar sloria avatar andrewsallans avatar csheldonhess avatar cwisecarver avatar zamattiac avatar vpnagraj avatar bnosek avatar aishanibhalla avatar danielsbrown avatar garykriebel avatar evomellor avatar huangginny avatar hmoco avatar patrickegorman avatar remram44 avatar terroni avatar gitter-badger avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.