Skip to content

hskang9/microservice.rs

Repository files navigation

microservice.rs

A graphql microservice container which is completely written with rust

Components

DB: postgresql, diesel backend: juniper, actix-web

Setup

Install postgresql, docker and docker-compose

Clone this repository and run docker compose

git clone <git url>
cd rust-graphql-backend
docker-compose up

In browser, go to http://localhost:5001/graphiql

Then you will see this image.

The cargo-watch package will be running in the container so that the server automatically updates after changes in the project directory including DB and backend.


Backend development

Monitoring

Prometheus is available at http://localhost:9090 Grafana is available at http://localhost:3000, and the ID is admin and PW is pass. For Grafana's plugins and server configuration, you can change it in docker-compose.yml.

Remove

Simply run docker-compose down in the project root directory.

Future works

Make this into a progressive Rust framework for building efficient, reliable, and scalable server-side applications like Nest.

About

a graphql microservice container which is completely writtten in rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published