Skip to content

mcawley/treemap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Getting Started

for current example/to see progress, go to http://treemap.hogan.io/

to deploy:

  1. clone this repo down. make sure you have npm install and nodejs on your system
  2. In the project root - sudo npm install
  3. go in to the client repo cd server, and sudo npm install -g bower then bower install
  4. go back to the root project leve cd .. and run the index.js file node server/server.js. This has babel on-the-fly convert the backend files, which some files contain es2015, to es5.

This app is running on a digital ocean 512mb droplet. The node backend is the API and hosts the static front end angular app

#####NGINX Proxy (3000 to 80)

follow these instructions until 'install apache': https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a-reverse-proxy-for-apache

here is my configuration file:

server {
        listen   80;

        server_name treemap.hogan.io;

        location / {

        proxy_set_header X-Real-IP  $remote_addr;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header Host $host;
        proxy_pass http://127.0.0.1:3000;

         }

}

API Endpoints/params/query items

coming soon

####database stuff first: ALTER TABLE tree_plantingswgs84 ADD COLUMN neighborhoodName character varying(50)

then: UPDATE tree_plantingswgs84 SET neighborhoodName = neighborhoodwgs84.label FROM neighborhoodwgs84 WHERE ST_Intersects(neighborhoodwgs84.geom,tree_plantingswgs84.geom);

SELECT name FROM jacksonco_schools, medford_citylimits WHERE ST_Within(jacksonco_schools.the_geom, medford_citylimits.the_geom);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PLpgSQL 99.7%
  • Other 0.3%