syedfaisalsaleeem / FastApi-Strawberry-GraphQL-SqlAlchemy-BoilerPlate

Boiler plate project for using GraphQL (Strawberry) with FastAPI and Async SQL Alchemy 🍓
https://graphql-stickynotes.herokuapp.com/graphql
MIT License
137 stars 23 forks source link

Environment variables missing - project won't start. #4

Open Beenhakker opened 1 year ago

Beenhakker commented 1 year ago

Nice boilerplate. Thanks for this.

However it does not work as provided. Environment variables missing - project won't start.

I tried setting it up with some sane defaults, but still then the project wont load.


export HOST_HTTP="http://localhost" export HOST_URL="/graph" export HOST_PORT=8000 export POSTGRES_USER="postgres" export POSTGRES_PASSWORD="" export POSTGRES_SERVER="127.0.0.1" export POSTGRES_PORT=5432 export POSTGRES_DB="fastapi_strawberry"


You get the error ERROR: [Errno 8] nodename nor servname provided, or not known

genp commented 1 year ago

I'm having a similar problem. I am running the app from the readme instructions, but I can't visit the /graphql endpoint due to missing auth. I know there must be some unset key or env vars, but I'm not sure what they are. Please advise.