Not debates, but recorded online video Q&A with candidates so voters can quickly can get to know them, for every candidate, for every election, across the US.
See our MVP/demo of the November, 5, 2019 San Francisco District Attorney race at: https://undebate.herokuapp.com/san-francisco-district-attorney
Copyright 2019 EnCiv, Inc. This work is licensed under the terms described in LICENSE.txt which is an MIT license with a Public Good License Condition
We believe that one of the causes of our national polarization, and the polarization around the world is application of some common for-profit business practices to democratic discourse. For example targeted marketing is the practice of identifying a subset of the market, and tailoring a message specifically for them. This is a great practice for making money, and consumers benefit by getting products that are tailored to their needs– we have toothpaste for whitening, for clean breath, for cavities, for sensitive gums, etc. However, when it comes to democratic discourse, and the information that people need in order to make the best decisions about the future of the country (or state, or city, etc.) these practices are the opposite of beneficial. Everyone needs all the same information, and there is only one government that must work for the good of all of us. EnCiv is building tools to enable very large groups of diverse people to work together very effectively, and this is just the tip of the iceberg. These tools and the resulting code are intended to be used for the public good and not to divide people. Consequently, we make this software open to individuals, and to 501(c)(3) organizations because they have formally committed to the public good over profit. We hope you will join us.
The Open Source Initiative, an organization with many for-profit sponsors, will say that this does not fit The Open Source Definition. We invite you to decide for yourself if it is the kind of open source software you would like to see used for the public good. EnCiv is also eager to talk with for-profit organizations interested in using their tools for the public good.
Contributions are accepted under the MIT License without additional conditions. Use of the software, however, must abide by the MIT License with the Public Good Condition. This additional condition ensures that in the event the software is sold or licensed to others, the revenue so generated will be used to further the public mission of EnCiv, Inc, a 501(c)(3) nonprofit, rather than to enrich any directors, employees, members, or shareholders. (Nonprofits can not have shareholders)
You will need a github.com account, and a heroku.com account. Heroku is like a server in the cloud that you can push git repo's to, and after you push, heroku will build and run them. It's also great because they give you free accounts that you can use for development.
The install instructions are here
This project is now using prettier. This makes some spacing and the user of quotes and a few other things consistent across the project.
- Open VSC for this project
- Hit Control-P
- In the search box paste in this text:
ext install esbenp.prettier-vscode
- Go to [File][preferences][Settings] where you will see a search box followed by a list of settings.
- Search for
editor format on save
- Click on
workspace
just below the search bar - so that this setting only applies to this work space - Check the box for
Editor: Format On Save
If you are not using VSC prettier will also be run before you commit, but see if prettier is available for your editor and post instuctions here
There is a tool that lets you view and edit the database in a browser window. This has been really useful in development. To get there:
- Browse to heroku and login to your account.
- In the list find the undebate-something-unique app that you created.
- You should see a logo next to a link called "mLab MongoDB". Click on that link.
- That will open a new window into your database. You will see 3 collections:
- iota: this is where "objects" are stored related to the debates. Different objects have different content and this is an advanage of a NoSQL database.
- logs: We are using log4js and the output goes to this collection, and to the console. To view the logs from the server in the cloud use
app/tools/logwatch.js db $MONGODB_URI
. To exit, Control-C - users: when people save their recordings, a users record is created. There's not much here now, and we need to expand on this.
- You can click on collections and look through them, you can edit entries (carefully!), and you can create new ones.
The server will only copy the iota.js file into the database if the databse is empty when it starts up. Another thing you can do is use mongoimport to upload the iota.js file into the database. To do that you will need to install mongo from https://docs.mongodb.com/manual/administration/install-community/ and then:
mongoimport --type json --collection iotas --file iota.json --uri $MONGODB_URI --jsonArray --mode
upsert
Note this will overwrite documents of the same _id. But other documents won't be harmed.