An open API service indexing awesome lists of open source software.

https://github.com/jontze/rust-graphql-microservice-template

Rust Actix-web server with graphql and sqlx.
https://github.com/jontze/rust-graphql-microservice-template

Last synced: 17 days ago
JSON representation

Rust Actix-web server with graphql and sqlx.

Awesome Lists containing this project

README

        

# Rust GraphQL Webserver Template

This template repo is used for the fast setup of a actix-web server with GraphQL, SQLx and Postgres under the hood.

The following technologies are used:
* Rust
* Actix-Web
* GraphQL
* SQLX
* Postgres

For a fast setup:
1. Clone the repo
2. Run `cargo install sqlx-cli`
3. Run `docker-compose up -d`
4. Create your `.env` file based on the [example](./.env.example)
5. Optional edit or add migrations and apply them with `sqlx migrate run`
6. Starte the server with `cargo run`
7. Go to `http://localhost:8080/graphiql`