Skip to content
A complete example how to setup a Rust GraphQL web server
Rust PLpgSQL Shell TSQL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
migrations
src
.gitignore
Cargo.lock
Cargo.toml
README.md
Rocket.toml
graphql-app-example-test
rust-toolchain
schema.graphql

README.md

Rust GraphQL example app

This project provides a complete example how to setup a Rust GraphQL web server using the following libraries:

Running the app

Create the (postgres) database and run migrations by running bin/setup. We create both a development and test database.

Then compile and run the app

$ cargo run

Then go to http://localhost:8000/graphiql.

Or run the tests with

$ cargo test

Note

This is by no means meant to demonstrate the best practices for making a web app with Rocket. Several important topics such as authentication and error handling is not addressed. It is meant to be used as a template for starting new apps.

You can’t perform that action at this time.