Code Monkey home page Code Monkey logo

dataverse-sample-data's Introduction

Dataverse Sample Data

Populate your Dataverse installation with sample data.

Requirements

  • Python 3.4 or higher

Installation

Clone this repo.

git clone https://github.com/IQSS/dataverse-sample-data.git

Change directories into the repo that you cloned.

cd dataverse-sample-data

Create a virtual environment for this project.

python3 -m venv venv

Activate the virtual environment you just created.

source venv/bin/activate

Install dependencies into the virtual environment, especially pyDataverse.

pip install -r requirements.txt

Copy dvconfig.py.sample to dvconfig.py (see the cp command below) and add your API token (using your favorite text editor, which may not be vi as shown below). Note that the config file specifies which sample data will be created.

cp dvconfig.py.sample dvconfig.py
vi dvconfig.py

Note that the environment variable $API_TOKEN will override api_token in dvconfig.py.

Adding sample data

Assuming you have already run the source and cd commands above, you should be able to run the following command to create sample data.

python create_sample_data.py

All of the steps above may be automated in a fresh installation of Dataverse on an EC2 instance on AWS by downloading ec2-create-instance.sh and [main.yaml][]. Edit main.yml to set dataverse.sampledata.enabled: true and adjust any other settings to your liking, then execute the script with the config file like this:

curl -O https://raw.githubusercontent.com/IQSS/dataverse-ansible/master/ec2/ec2-create-instance.sh
chmod 755 ec2-create-instance.sh
./ec2-create-instance.sh -g main.yml

For more information on spinning up Dataverse in AWS (especially if you don't have the aws executable installed), see http://guides.dataverse.org/en/latest/developers/deployment.html

Contributing

We love contributors! Please see our Contributing Guide for ways you can help.

dataverse-sample-data's People

Contributors

pdurbin avatar djbrooke avatar landreev avatar kcondon avatar beepsoft avatar donsizemore avatar philippconzett avatar

Watchers

 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.