- Download
- Install Dependencies (npm / gem)
- Run local server
Area | Software |
---|---|
Front-end | React / Redux |
Backend | Rails 5.0 |
I am currently working on project to create a Redux CLI and framework so I jumped at a chance to continue to use and test out my project in a real world environment.
Beyond that this project lends itself to a single page framework so a javascript front-end was an easy decision.
Originally my idea was to go with no back end and allow a simple API call to provide the data for the session that would then me manipulated throughout. The problem arose when seeking to work with Google Maps API geocode limit of 2500 per month (clearly impossible for the structure I had in mind). So I pivoted to rails deployment for the backend allowing me download the data run it through a batch geocoding service online and then write a simple rake task to import.
desc "This task uploads locations"
task :upload_database => :environment do
require 'csv'
puts "Setting Database..."
csv_text = File.read('db/locations.csv', :encoding => 'iso-8859-1')
csv = CSV.parse(csv_text, :headers => true)
csv.each do |row|
Location.create!(row.to_h)
end
puts "done."
end
A highly configurable jquery autocomplete plugin. Allowing me to really leverage the time I had on this project.