Skip to content

Crowdsourcing data about which residential buildings do not have recycling in a given city

License

Notifications You must be signed in to change notification settings

samc1213/recycling

 
 

Repository files navigation

My Building Doesn't Recycle

Crowdsourcing data about which residential buildings do not have recycling in a given area. I am attempting to modify this fork to be generic, so instead of being Chicago-centric, it is possible to deploy this application for a new city looking to document recycling needs.

The app can currently be found at http://recycling.samacohen.com

Dependencies

Running Your Own Instance

If you'd like to run your own instance for your city, you can fork this repository and change the configs to make sense for your city. You can then push up a new branch, and trigger a GitHub Actions build for the branch. Then, if you also modify the docker-compose.yml file to point to your branch name, you can start the instance by simply running docker compose up once you've copied the compose file down. See the denver branch for an example.

The server runs on port 3000 by default, so visit http://localhost:3000 in your browser to view it.

Getting Started With Development

To start developing, first install Docker and Docker Compose. Then run:

docker compose -f docker-compose.dev.yml up --build

The docker-compose.dev.yml file maps the repository to the docker container, so any client-side changes will be reflected immediately. Any changes to the node server itself will require a restart of the recycling container, which can be done with docker compose -f docker-compose.dev.yml restart recycling.

To clean all the data from the mongoDB database, you can run docker compose -f docker-compose.dev.yml down -v

Tests

Run the tests with npm test

About

Crowdsourcing data about which residential buildings do not have recycling in a given city

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 58.7%
  • EJS 29.8%
  • CSS 11.4%
  • Other 0.1%