Skip to content

StepByStepSetup(Dev)

UniDomi edited this page May 31, 2018 · 1 revision

Procedure

  1. Setup frontend
  2. Setup backend
  3. Upload data to backend
  4. Parse data
  5. Geocode data
  6. Change api in frontend

Setup frontend

Please see https://github.com/eonum/geopitalsuisse/wiki/Setup#frontend , if the setup is correct you should see a working app as the default api is https://geopital.herokuapp.com/

Setup backend

Please see https://github.com/eonum/geopitalsuisse/wiki/Setup#backend-dev, if the setup is correct you should be able to access the backend on http://localhost:3000/

Upload data to backend

Please take this data https://github.com/eonum/geopitalsuisse/blob/data/kzp16_old.xls and upload it to the backend. There is a manual for that on https://github.com/eonum/geopitalsuisse/wiki/Manual:-Backend#uploading-files

Parse data

Please see https://github.com/eonum/geopitalsuisse/wiki/Manual:-Backend#parse-files, the parsing of the hospitals might take a little longer. If you check the rails s terminal you see that the app is working and inserting the data.

Geocode Data

Please see https://github.com/eonum/geopitalsuisse/wiki/Backend_Rails#how-to-geocode-hospitals-and-locations, please keep in mind that the geocoder needs SSL, it might be useful to do that in a linux environment.

Change API in Frontend

Please see https://github.com/eonum/geopitalsuisse/wiki/Backend_Rails#api, normally your address in dev is localhost:3000