Skip to content

root27/rust-grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Grpc Server

This repo contains grpc server and client using Rust and actix-web. It includes basic CRUD operations with MongoDB.

How to run the server

cargo run --bin server

How to run the client

cargo run --bin client

Client includes several APIs to communicate with grpc server.

APIs

  1. Create User
  • Request
{
  "name": "John Doe",
  "email": "test@test.com",
  "password": "password",
  "age": 25
}
  • Response
{
    "message": "User created"
}
  1. Get User
  • Request
{
  "email": ""
}
  • Response
{
    "name": "",
    "email": "",
    "age": ,
    "message": "User found"
}
  1. Update User
  • Request
{
  "name": "",
  "email": "",
  "age":
}
  • Response
{
    "message": "User updated successfully"
}
  1. Delete User
  • Request
{
  "email": ""
}
  • Response
{
    "message": "User deleted"
}

About

Rust Grpc Server and Client with MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages