WillSquire / Graphy

A simple Rust Graphql server starter project.
Apache License 2.0
2 stars 0 forks source link

simple example, documentation #1

Open dvv-ru opened 5 years ago

dvv-ru commented 5 years ago

Found your implementation of GraphQl server on Rust, cloned the repository, launched cargo run ... found (nmap) on localhost:8000 and now I don’t know what to do next. Please add minimal documentation and a simple example of using your server.

I forgot to add that in your implementation the Postgres server is always on port 5432, and can you make the port custom?

WillSquire commented 5 years ago

Hi @dvv-ru, apologies for not getting back sooner. Did you pass the arguments on run? I.e. --db-user="...", etc.

Should be able to pass the port as part of the db_server arg. E.e. 127.0.0.1:5000.

Just so I can improve the documentation, did you have trouble spinning it up with Docker or just cargo?

Thanks.