Skip to content

shivchander/nyc-buildings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analyzing NYC Building footprints dataset

Back-end engineer assignment for topos inc.

Exract data, load into database with an api written using Go. Includes a simple frontend

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

MongoDB Driver

go get gopkg.in/mgo.v2

Gorilla/mux - URL router

go get github.com/gorilla/mux

BurntSushi/toml - TOML parser and encoder for Go

go get github.com/BurntSushi/toml

Running the code

Open two windows of terminal/cmd

Run mongodb server on one

mongod

On the other, change directory to the project folder and build

go build

Run the app

go run app.go

Note: Run the app again if it fails to find a server. Make sure that an instance of 'mongod' is running.

Testing

Open localhost:3000/index in a browser

Note: This instance has only the first 1000 records due to memory constraints. Follow the instructions and Change the code in app.go to include all the records. This is an intensive task (there are more than 1 million records) and will take time to extract data and load the webpage

Search for specific records using BIN

Invalid BIN

Search for records within a year range by specifying the start and end years

Invalid Year

About

Extract and analysis of data from nyc buildings footprints dataset using go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published