forked from shawseanyang/health-vulnerability-mapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 58eed25
Showing
408 changed files
with
508,394 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
HOST=http://localhost | ||
PORT=8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
# Elastic Beanstalk Files | ||
.elasticbeanstalk/* | ||
!.elasticbeanstalk/*.cfg.yml | ||
!.elasticbeanstalk/*.global.yml | ||
|
||
# MacOS | ||
.DS_STORE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Access & Equity | ||
## COVID-19 Health Vulnerability Mapper | [Go to Web App](http://covid.shawsean.com) | ||
### 🎉 1st Place – [Amazon's AWS Data Exchange Challenge Hackathon](https://awsdataexchange.devpost.com/) | ||
**Introducing:** An interactive mapping tool that illustrates how certain demographics— including low-income communities, ethnic minorities, and immigrants— have been disproportionately affected by the COVID-19 pandemic. We're inviting you to explore the geography of this social justice issue with us, and learn how to combat it, as outbreaks evolve in real time. | ||
|
||
<img src="https://github.com/shawseanyang/health-vulnerability-mapper/blob/master/public/images/macbook-mockup-2.png" width="400"> | ||
|
||
### COVID-19 Health Vulnerability Mapper | ||
<a href="http://covid.shawsean.com" target="_blank">Link to web app</a> | ||
|
||
### Video | ||
<a href="https://youtu.be/eWtF2rZ8ZJQ" target="_blank">Link to intro video</a> | ||
|
||
### Take Action Resources | ||
<a href="http://covid.shawsean.com/resources" target="_blank">More resources to make a difference in your community</a> | ||
|
||
### Credits & Sources | ||
<a href="https://docs.google.com/document/d/10HQjvuQbOt1krpGJp2CEdyplas8u-B71ZjSfOOrlTHY/edit?usp=sharing" target="_blank">Credits, Libraries Used, Data Sources, and more</a> | ||
|
||
|
||
## Features | ||
|
||
### Search for locations. | ||
Browse and search the map to find a community, whether its your own or across the country. | ||
|
||
### Explore the data. | ||
Use tools to analyze the spread of outbreaks in real-time relative to social vunerability in an intuitive, visual, tangible medium. | ||
|
||
### Learn about injustices. | ||
Discover communities disproportionately impacted by the COVID-19 pandemic and how they compare to the rest of the United States. | ||
|
||
### Drive action in your city. | ||
View our repository of resources to figure out how you can play a part in bridging inequality. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* App file for Express.js. Imports the necessary libraries and routes requests | ||
*/ | ||
|
||
// import Node.JS Environmental variables | ||
require('dotenv').config(); | ||
const host = process.env.HOST || 'http://localhost'; | ||
const port = process.env.PORT || '3000'; | ||
|
||
// NPM Imports | ||
var express = require('express'); | ||
var createError = require('createerror'); | ||
var cors = require('cors'); | ||
var whiskers = require('whiskers'); // Whiskers rendering engine | ||
var path = require('path'); | ||
|
||
// Express Router Imports | ||
const mapRouter = require("./routes/map"); | ||
const homeRouter = require('./routes/home'); | ||
const resourcesRouter = require('./routes/resources'); | ||
|
||
// Create express app | ||
var app = express(); // needs to be set up with websockets | ||
|
||
// allow requests to Amazon AWS | ||
app.use(function(req, res, next) { | ||
res.header("Access-Control-Allow-Origin", "*"); | ||
res.header("Access-Control-Allow-Headers", "X-Requested-With"); | ||
next(); | ||
}); | ||
|
||
// allow CORS | ||
app.use(cors()); | ||
|
||
// set view engine to just plain ol' html | ||
app.use(express.static(__dirname + '/public')); | ||
|
||
// set view engine to whiskers | ||
app.engine('.html', whiskers.__express); | ||
app.set('views', path.join(__dirname, '/public')); | ||
|
||
// Connect the Express files to their respective Routers and Login Requirement functions | ||
app.use('/', homeRouter); | ||
app.use('/map', mapRouter); | ||
app.use('/resources', resourcesRouter); | ||
|
||
// catch 404 and forward to error handler | ||
app.use(function(req, res, next) { | ||
next(createError(404)); | ||
}); | ||
|
||
// error handler | ||
app.use(function(err, req, res, next) { | ||
// set locals, only providing error in development | ||
res.locals.message = err.message; | ||
res.locals.error = req.app.get('env') === 'development' ? err : {}; | ||
|
||
// render the error page | ||
res.status(err.status || 500); | ||
res.render('error'); | ||
}); | ||
|
||
// Start the server!!! 😁 | ||
app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`)); | ||
|
||
module.exports = app; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.