GithubHelp home page GithubHelp logo

mfraezz / share Goto Github PK

View Code? Open in Web Editor NEW

This project forked from centerforopenscience/share

0.0 2.0 0.0 41.09 MB

SHARE is building a free, open, data set about research and scholarly activities across their life cycle.

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

License: Apache License 2.0

Python 99.49% CSS 0.30% HTML 0.13% Shell 0.08%

share's Introduction

SHAREv2

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. Finally, ./up.sh ensures everything has been installed properly.

docker-compose up -d rabbitmq postgres
./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

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

Watchers

 avatar  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.