Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 2.71 KB

README_API_INSTALL_SETUP_DATA.md

File metadata and controls

53 lines (33 loc) · 2.71 KB

README for API Installation: 6. Setup Initial Data

Back to Install Table of Contents

Sample data

Sample data is provided. Go here:

http://localhost:8000/admin

Make sure you have given yourself admin privileges. When you run the following command, enter your email address and a simple password. This admin account is only used in development.

python manage.py createsuperuser

Find the "Sync Data with Master We Vote Servers" link, and click it: http://localhost:8000/admin/sync_dashboard/

Start by clicking the Fast Load Data From We Vote Master Servers button.

The fast loading will take somewhere in the range of 40 to 80 minutes to complete. It will copy about 30 tables from the Master database in AWS, to your local database, which will allow you to run the api server software locally.

There is an alternate way to transfer the tables "Sync Data With Master We Vote Servers" lower down on the page this is the original method which is rarely needed, and can take many hours to transfer the data.

Google Civic - Advanced (Please skip unless you are working on Google Civic integration code)

In order to retrieve fresh ballot data, you will need to sign up for a Google Civic API key:

  • Note: if your email address is part of a G Suite domain, you may not have the admin access rights to create a project. If so, logout of the G Suite account and use your personal account to create the project.

Vote Smart - Advanced (Please skip unless you are working on Vote Smart integration code)

We also have a paid subscription with Vote Smart. You can sign up for a Vote Smart developer key, or reach out to Dale.McGrew@WeVote.US to discuss using our organizational account.

  • Copy your Vote Smart key and paste it into config/environment_variables.json as the value for VOTE_SMART_API_KEY

Twitter

Instructions coming soon.

Working with WeVoteServer day-to-day

Back to Install Table of Contents