Skip to content

Commit

Permalink
Transfer repos
Browse files Browse the repository at this point in the history
  • Loading branch information
shawseanyang committed Dec 4, 2020
0 parents commit 58eed25
Show file tree
Hide file tree
Showing 408 changed files with 508,394 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
HOST=http://localhost
PORT=8080
8 changes: 8 additions & 0 deletions .gitignore
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
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: npm start
33 changes: 33 additions & 0 deletions README.md
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.
66 changes: 66 additions & 0 deletions app.js
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;
1 change: 1 addition & 0 deletions node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

236 changes: 236 additions & 0 deletions node_modules/accepts/HISTORY.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions node_modules/accepts/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 58eed25

Please sign in to comment.