widal001 / ejscreen-demo Goto Github PK
View Code? Open in Web Editor NEWUpdated example of EJScreen's tool
License: MIT License
Updated example of EJScreen's tool
License: MIT License
Setup the basic architecture for the dash app and create a simple /mapper
page which loads the dashboard
/
which uses the jumbotron template to link to the following information:
Set up database migrations using flask_migrate
and add a setup.py
that creates and populates a local Postgres db
setup.py
has a function create_local_db()
which:
run.py
is executed it attempts to connect to the local Postgres database and if one isn't found it calls create_loacl_db()
Create an endpoint POST api/regions/
which allows users to query a set of indicators for one or more census block regions
GET api/regions
:200
Success, with following response body:
{'type': 'Feature',
'properties': {'fips_code': '0500000US01001',
'state': 'MD'},
'geometry': {
'type': 'Polygon',
'coordinates': [[[-86.496774, 32.344437],
[-86.717897, 32.402814],
[-86.814912, 32.340803],
[-86.890581, 32.502974],
[-86.917595, 32.664169],
[-86.71339, 32.661732],
[-86.714219, 32.705694],
[-86.413116, 32.707386],
[-86.411172, 32.409937],
[-86.496774, 32.344437]]]},
'id': '01001'}
Create a docker image of the application that would make it easier to clone and start up the app locally
README.md
should explain how to run the containers after cloning the projectSet up project and explore the data structure
Create a table to store the indicator values
indicators
with the following columns:
id
Unique identifier for an indicatorcategory
Text representing the category the indicator belongs to (e.g. demographic, environmental, etc.)source
Text representing the data source for this indicatorsource_name
Text representing the name of this indicator in the original datasourcedisplay_name
Text representing the human readable name for this indicator to display in reportsdescription
Text of the description of the indicatorapi/indicators/
which returns the following response
{
"status": "success",
"data": [
"id": 1,
"category": "Demographic",
"source": "EJScreen",
"source_name": "ACSTOTPOP",
"display_name": "Total Population",
"description": "The total population of the census block"
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.