MLH / mlh-hackathon-flask-starter

Hackathon starter project for Flask applications
MIT License
731 stars 286 forks source link

read me asks for Database URL config before establishing the database #7

Closed rkrevolution closed 5 years ago

rkrevolution commented 5 years ago

We're prompted to create .env file w/ a database URL before having established the DB URL.

fblampe commented 5 years ago

I noticed the same thing, plus the link to the PostgreSQL installation instructions just points to a "What's New" page, which does not explain how to install it.

rkrevolution commented 5 years ago

http://www.postgresqltutorial.com/install-postgresql/ http://www.postgresqltutorial.com/connect-to-postgresql-database/

Nydhal commented 5 years ago

You can use an in-memory database DATABASE_URL="sqlite://"

shafiemukhre commented 5 years ago

Can someone give an example of postgreSQL url for the database?

nlaz commented 5 years ago

@shafiemukhre This is an example of the postgreSQL url I use for local development:

DATABASE_URL="postgresql://localhost:5432/mlh-hackathon-starter-flask"
nlaz commented 5 years ago

I updated the documentation to include this feedback by clarifying the database step in the installation process. https://github.com/MLH/mlh-hackathon-flask-starter/commit/eb70e0bbae4dc82377fc78ddbbd0416ac8fa4dd9. Let me know if you have any other issues.