From 008cd5f9f07ccb8bfbb9f83e44149051e772c8e6 Mon Sep 17 00:00:00 2001 From: "D.A.Bashkirtsevich" Date: Thu, 4 May 2017 11:55:24 +0500 Subject: [PATCH 1/2] Update README.md Fix links and add field names --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8c1e154..3b329b6 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ You can use ``Vagrant`` to start a machine with a MongoDB instance running To initialize the database you need to download the data - $ wget https://s3.amazonaws.com/open_data/csv/opendata_projects.zip && unzip opendata_projects.zip + $ wget http://s3.amazonaws.com/open_data/opendata_projects000.gz and import it - $ mongoimport -d donorschoose -c projects --type csv --file /vagrant/opendata_projects.csv -headerline + $ mongoimport -d donorschoose -c projects --type csv --file /vagrant/opendata_projects.csv --fields "_id,_projectid,_teacher_acctid,_schoolid,school_ncesid,school_latitude,school_longitude,school_city,school_state,school_zip,school_metro,school_district,school_county,school_charter,school_magnet,school_year_round,school_nlns,school_kipp,school_charter_ready_promise,teacher_prefix,teacher_teach_for_america,teacher_ny_teaching_fellow,primary_focus_subject,primary_focus_area,secondary_focus_subject,secondary_focus_area,resource_type,poverty_level,grade_level,vendor_shipping_charges,sales_tax,payment_processing_charges,fulfillment_labor_materials,total_price_excluding_optional_support,total_price_including_optional_support,students_reached,total_donations,num_donors,eligible_double_your_impact_match,eligible_almost_home_match,funding_status,date_posted,date_completed,date_thank_you_packet_mailed,date_expiration" From 36e022ec3b9a5095d04a3cbee88ea2d1e2d22145 Mon Sep 17 00:00:00 2001 From: "D.A.Bashkirtsevich" Date: Thu, 4 May 2017 14:10:16 +0500 Subject: [PATCH 2/2] Update README.md One field in CSV is missed, delete from fields list --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b329b6..c4b022b 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,4 @@ To initialize the database you need to download the data and import it - $ mongoimport -d donorschoose -c projects --type csv --file /vagrant/opendata_projects.csv --fields "_id,_projectid,_teacher_acctid,_schoolid,school_ncesid,school_latitude,school_longitude,school_city,school_state,school_zip,school_metro,school_district,school_county,school_charter,school_magnet,school_year_round,school_nlns,school_kipp,school_charter_ready_promise,teacher_prefix,teacher_teach_for_america,teacher_ny_teaching_fellow,primary_focus_subject,primary_focus_area,secondary_focus_subject,secondary_focus_area,resource_type,poverty_level,grade_level,vendor_shipping_charges,sales_tax,payment_processing_charges,fulfillment_labor_materials,total_price_excluding_optional_support,total_price_including_optional_support,students_reached,total_donations,num_donors,eligible_double_your_impact_match,eligible_almost_home_match,funding_status,date_posted,date_completed,date_thank_you_packet_mailed,date_expiration" + $ mongoimport -d donorschoose -c projects --type csv --file /vagrant/opendata_projects.csv --fields "_id,_projectid,_teacher_acctid,school_ncesid,school_latitude,school_longitude,school_city,school_state,school_zip,school_metro,school_district,school_county,school_charter,school_magnet,school_year_round,school_nlns,school_kipp,school_charter_ready_promise,teacher_prefix,teacher_teach_for_america,teacher_ny_teaching_fellow,primary_focus_subject,primary_focus_area,secondary_focus_subject,secondary_focus_area,resource_type,poverty_level,grade_level,vendor_shipping_charges,sales_tax,payment_processing_charges,fulfillment_labor_materials,total_price_excluding_optional_support,total_price_including_optional_support,students_reached,total_donations,num_donors,eligible_double_your_impact_match,eligible_almost_home_match,funding_status,date_posted,date_completed,date_thank_you_packet_mailed,date_expiration"