rtyler / dotdotvote

A simple web application for dot-voting
https://www.dotdotvote.com
GNU Affero General Public License v3.0
9 stars 4 forks source link

"Hacking" instructions are incomplete #15

Open jpaugh opened 4 days ago

jpaugh commented 4 days ago

When I try to start the application per the README,

it fails due to a missing DATABASE_URL config. That's not a surprise, since I haven't configured the database. ;-) What is a surprise is that the README doesn't mention how to set up a db.

$ RUST_LOG=info cargo run
     Running `target/debug/dotdotvote`
thread 'main' panicked at src/main.rs:577:54:
DATABASE_URL must be set: NotPresent
jpaugh commented 4 days ago

Upon further inspection, it looks like there might be seed data (sqlx-data.json), and that the db should be set up by sqlx. I've no experience with sqlx, so that's as far as I am going for now.

Regards!