A compelete example of graphql api built with:
- Actix (web server)
- Diesel (database)
- r2d2 (database connection pool)
- Juniper (graphql)
- juniper-from-schema (graphql code generation)
# 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
createdb graphql-actix-example
diesel migration run
cargo run (or ``cargo watch -x run``)
# Started http server: 127.0.0.1:3000
Then go to http://localhost:3000/.