Coder Social home page Coder Social logo

doom-patrol's Introduction

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

doom-patrol's People

Contributors

bradfordcp avatar mando222 avatar michael-baraboo-datastax avatar omnifroodle avatar steven-hubbard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.