Skip to content

zhibin-wang09/Eco-Analyzer

Repository files navigation

Eco-Analyzer

Pre-req

*(Required)*For anyone who is contributing to this repo you will need to use git lfs(git large storage). It serves as an way to by pass the git restriction on 100MB file size upload to the repo. git lfs make the uploaded file serve as a pointer to the actual content. filename -> actual content of file.

(Required) To install Redis Cache if the user of this repo is intended to start the spring boot application. To do so, please read the following instructions.

To install git lfs

For windows: here

For mac: here

More explanation: here

To set up git-lfs for the project (Not required if there are no files > 100MB)

  1. In this repo, do git lfs install
  2. In this repo, do git lfs track file1 file2 ... for any files that is too large. Currently it is two the precinct geojsons in client/public
  3. Then do git lfs migrate info --include = "file1, file2" ONLY if the commit failed otherwise skip this step
  4. Verify that files are tracked by git lfs, do git-lfs ls-files, if you see files listed then you should be good to go.
  5. Now you can use git as usual, git lfs will handle the rest for us If there's any questions refer to medium article

To install redis-cache

here

Start Guide

Server

To start the server, you will need to supply a bash script to load environment variables for application.properties file within Spring Boot.

The example file looks like below

set_env.sh

#!/bin/bash

# Set environment variables
export MONGO_USERNAME=_
export MONGO_PASSWORD=_
export MONGO_DB_NAME=_

It is required that this file is named set_env.sh Make this file executable by doing chmod +x set_env.sh

Add the script on the same directory as mvnw file. If you place it anywhere else, please add the file into the .gitignore file in the root directory.

The command to run the script: source set_env.sh

Start redis server redis-server

Then in the same directory that the script was ran in run the following command to start the project: ./mvnw spring-boot:run

Visualizer Preview

Demographic Heatmap New York Box And Whisker New York District Detail Table New York Ecological Inference New York Gingles New York Ginlges Table New York Summary New York Political Income Heatmap

About

State Data Visualizer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors