Giter Club home page Giter Club logo

kuki's Introduction

K.U.K.I

Golang Playground with gRPC and Echo

Kuki is a playground repository that demonstrates how to use Golang to build both gRPC and RESTful APIs using the Echo framework. It provides examples and explanations to help you understand the concepts of building APIs with these technologies.

Table of Contents

Introduction

Kuki is a project aimed at showcasing the usage of Golang with gRPC and Echo framework. It provides practical examples and step-by-step explanations to help you build APIs effectively using these technologies.

Features

  • Demonstrates building gRPC services with handler functions.
  • Illustrates building RESTful APIs using Echo.
  • Provides clear examples for various API operations: Create, Read, Update, Delete (CRUD).
  • Promotes understanding of how to integrate gRPC and RESTful APIs within the same project.
  • Supports interactive learning for beginners in the world of Golang APIs.

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/saefullohmaslul/kuki.git
cd kuki
  1. Install the required dependencies:
go get -u github.com/labstack/echo/v4
go get -u google.golang.org/grpc

Usage

  1. Navigate to the grpc_server directory and run the gRPC server:
cd grpc_server
go run main.go
  1. In a separate terminal window, navigate to the rest_server directory and run the REST API server:
cd rest_server
go run main.go
  1. You can now access the gRPC and REST API endpoints as described in the Endpoints section below.

Endpoints

gRPC Endpoints

  • Create Todo: POST http://localhost:50051/todo
  • Read Todo: GET http://localhost:50051/todo/{id}
  • Update Todo: PUT http://localhost:50051/todo
  • Delete Todo: DELETE http://localhost:50051/todo/{id}

REST API Endpoints

  • Create Todo: POST http://localhost:1323/todo
  • Read Todo: GET http://localhost:1323/todo/:id
  • Update Todo: PUT http://localhost:1323/todo/:id
  • Delete Todo: DELETE http://localhost:1323/todo/:id

Contributing

Contributions to Kuki are welcome! Feel free to open issues for feature requests, bug fixes, or improvements. Pull requests are also appreciated.

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/my-feature.
  3. Make your changes and commit them: git commit -am 'Add some feature'.
  4. Push the branch: git push origin feature/my-feature.
  5. Open a pull request.

License

This project is licensed under the MIT License.

kuki's People

Contributors

saefullohmaslul avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.