/graphql-actix-example

A compelete example of graphql api built with actix + juniper+ diesel

Primary LanguageRust

Graphql Actix Example

A compelete example of graphql api built with:

Running the app

install needed packages

# if ubuntu : sudo apt-get install libpq-dev
# if fedora : sudo dnf install postgresql-devel
# if solus : sudo eopkg install postgresql-devel
cargo install diesel_cli --no-default-features --features postgres

init database postgres

createdb graphql-actix-example
diesel migration run

server

cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:3000

Then go to http://localhost:3000/.