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.
- Host: GitHub
- URL: https://github.com/jontze/rust-graphql-microservice-template
- Owner: jontze
- Created: 2021-09-27T17:32:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-30T05:18:59.000Z (about 1 month ago)
- Last Synced: 2025-05-07T06:16:35.559Z (24 days ago)
- Language: Rust
- Size: 389 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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
* PostgresFor 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`