agdolla / graphql-app-example

A complete example how to setup a Rust GraphQL web server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A complete example how to setup a Rust GraphQL web server


Languages

Language:Rust 89.7%Language:PLpgSQL 6.5%Language:Shell 2.0%Language:TSQL 1.9%