a website for residents to City of Cleveland change their Budget to show what they want the city to value and share their proposed budget with their elected councilperson in city government.
Project outline is at: https://docs.google.com/document/d/1ydc5Bw0Ctp8LJFEWECu9f9wMeUfM-FKlhTROik0QJiY/edit
We have a Miro Board to sketch out a wireframe.
You can view our project, live, at https://refundcleveland.com
If something is not behaving as you expected, it could be a bug, or if you have an idea, it can be reported in our issue tracker at https://github.com/opencleveland/refundcleveland
Join our slack channel - #refundcleveland. Complete self-sign up link https://opencle-slack.herokuapp.com/ to join our slack instance.
Most of our features, issues, and discussion is coordinated through our slack channel.
Pre-Requisites:
- Git
- Python 3.9+
- PostgreSQL
- Mailgun API Key (if you wish to send out emails while testing)
git clone https://github.com/refundcleveland
cd refundcleveland
pip3 install -r requirements.txt
If you need to install PostgreSQL, please follow these steps:
- Install PostgreSQL (https://www.enterprisedb.com/downloads/postgres-postgresql-downloads). Remember the password!
- (On Windows) Update your environment path variables. (Step 3 here: https://medium.com/@aeadedoyin/getting-started-with-postgresql-on-windows-201906131300-ee75f066df78)
- Open a command line and run
psql -U postgres
. This is the default superuser. Enter the password you created. - Within the postgres terminal, enter the command
CREATE DATABASE <databaseName>;
. - Update your local_settings.py file!
- Run the command
python3 manage.py migrate
within the command line to create tables within your database.
Copy and rename local_settings_template.py to local_settings.py, and fill in environmental variables:
SECRET_KEY
-- Django’s Secret Key used by the project
GOOGLE_API_KEY
-- Used for Google's Civic Information API to map Address to Political Ward
MAILGUN_API_KEY
-- Used for the Mailgun API that sends out emails when a user submits a budget
DATABASES
-- map of parameters to define the connection to a database. In prod, we are using a postgres db hosted on heroku, and the connection is injected there via config vars. For local versions, enter the information you used when creating the database. Example:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'refund1',
'USER': 'postgres',
'PASSWORD': '<password>',
'HOST': 'localhost',
'PORT': '5432',
}
}
python3 manage.py runserver
Navigate to http://localhost:8000/
This is currently done through heroku.
We used the following open source libraries/tools: d3, django, python3, postgres, Google Civic Information API
- Fork the project.
- Make your feature addition or bug fix.
- Send us a pull request. Bonus points for making a new name your branch that describes your changes. For example, if you're improving the css by adding margins for input range element,
css-range-margins
would be appropriate.
MIT License