Skip to content

bradfordcp/doom-patrol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doom Patrol

Doom Patrol

Geospatial data store based on Astra and Stargate leveraging both the keyspace and document APIs.

Components

Astra & Stargate

Awesome C*aaS and API interfaces for powering the data layer behind our application.

Setup

  1. Create an Astra Database

  2. Take note of the Database ID, Region, Username and Password

  3. Export these values for the backend to use later

    export ASTRA_DATABASE_ID=00000000-0000-0000-0000-000000000000
    export ASTRA_REGION=us-east1
    
    export ASTRA_DATABASE_USERNAME=MyAwesomeUsername
    export ASTRA_DATABASE_PASSWORD=MrNobody
    export ASTRA_KEYSPACE=dooooom
  4. Create a new table in the CQLSH Console

    CREATE TABLE dooooom.geohash (
        hash text PRIMARY KEY,
        id text
    );

Backend

Lightweight Flask application with helper libraries around GeoJSON, GeoHashing, and the Astra REST APIs.

Setup

cd backend
virtualenv venv
source venv/bin/activate

pip3 install -r requirements.txt

Running

cd backend
source venv/bin/activate

python3 main.py

Unit Tests

cd backend
source venv/bin/activate
python -m unittest discover -s test -v -p '**test_*.py'

Frontend Screenshot

Frontend

React Single Page Application (SPA) leveraging the Kepler.gl for visualizing GeoJSON data served by the backend.

Setup

  1. Sign up for a MapBox API token
cd frontend
npm install

Running

cd frontend
npm run start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published