Skip to content

A simple gRPC service written in Go, showcasing basic user-related functionality with mock database entries.

License

Notifications You must be signed in to change notification settings

VILJkid/go-simple-grpc-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC Service Demo

Go Language Docker Container MIT License

This is a simple gRPC service demo written in Go. It includes user-related functionality with mock database entries.

Disclaimer:

This project is part of an assignment for Totality Corp and is intended for educational purposes only. It is not intended for use in any production, commercial, or real-world application. The code may not adhere to best practices, security standards, or other considerations required for production-ready software.

Use this project at your own discretion, and be aware that it may contain intentional simplifications or educational constructs that may not be suitable for real-world scenarios.

Prerequisites

  • Go (at least Go 1.21.4)
  • Docker (if you want to run the application in a Docker container)

Getting Started

  1. Clone the repository:

    git clone https://github.com/VILJkid/go-simple-grpc-demo.git
    cd go-simple-grpc-demo
  2. Build and run the application locally:

    go mod tidy
    go build -o app
    ./app

    The gRPC service will be accessible on port 8081.

  3. Alternatively, build and run the application using Docker:

    docker build -t go-simple-grpc-demo .
    docker run -p 8081:8081 go-simple-grpc-demo

    The gRPC service in the Docker container will also be accessible on port 8081.

Running Tests

cd service
go test -v

License

This project is licensed under the MIT License.

About

A simple gRPC service written in Go, showcasing basic user-related functionality with mock database entries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published