Ward Wise is a tool to help residents track, compare, and understand local municipal spending in Chicago, and get more involved in the aldermanic menu process. The site is live at WardWiseChicago.org.
Clone/Fork the repo and install dependencies (npm install
)
Install PostgreSQL, if you do not already have an instance installed.
Run createdb wardwise
in your terminal.
Note: If PostgreSQL was not added to your system PATH during installation, you'll need to be in the PostgreSQL
bin
directory for this command to work.
Create a .env.local
file in your project directory and add the below, where USERNAME and PASSWORD are the credential for:
DATABASE_URL="postgresql://USERNAME:PASSWORD@localhost:5432/wardwise?schema=public"
Run npm run migrate:dev
to create tables and seed your database. If the seeding does not happen automatically, run npm run db:seed
.
Run npm run dev
to start a development server (located at http://localhost:3000 by default)
For additional database management scripts, see package.json
In the .env.local
file, add a line with the following information:
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID="G-#####"
The Google Analytics ID is obtained by setting the site up in Google Analytics.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!