8000 GitHub - prakhar-5447/GoDB
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

prakhar-5447/GoDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Godb-Server

A lightweight gRPC server built using Golang and packaged as a Docker container.

Prerequisites

  • Docker installed on your system.
  • Git installed to clone the repository.

Running This Project

There are two ways to run this project: either by cloning the repository and running the Go server manually or by pulling the Docker image and running a container 7362 . Both methods will run the server on localhost:50051, so you can choose either option.

Option 1: Clone the Repository and Run Manually

git clone https://github.com/prakhar-5447/godb-server.git
cd godb-server
go run cmd/server/main.go

Option 2: Use Docker

Run the Docker Container

To run the container in detached mode and expose the gRPC port 50051:

docker run -d -p 50051:50051 --name godb-container prakhar5447/godb-server

Verify Running Server

Check if the server is running:

  • For manual run: You should see logs in your terminal.
  • For Docker: Run the following command:
docker ps

If needed, inspect logs:

docker logs godb-container

Stop and Remove the Docker Container

To stop and remove the container, run:

docker stop godb-container && docker rm godb-container

Pull from Docker Hub (Alternative)

If you don't want to build the image, you can pull it directly from Docker Hub:

docker pull prakhar5447/godb-server

Then run it as described above.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0