Giter Site home page Giter Site logo

ngminhdan / go-base-service Goto Github PK

View Code? Open in Web Editor NEW
92.0 6.0 28.0 6.11 MB

This project allows developers to build services for exporting REST APIs. It makes it easy to connect to databases, cache, Kafka, S3, elasticsearch and authentication. Keep building !

Dockerfile 0.21% Makefile 0.09% Go 99.69%
authentication authorization codebase elasticsearch event-driven go go-chi golang hs256 jwt

go-base-service's Introduction

Welcome to Go-Base-Service

A fast codebase for building a service to serve HTTP requests. Built with love by me and the previous team. In the base-service, we have developed the following features, with ongoing features in the pipeline:

  • Support for working with configurations (Dev, Production, Default Values)
  • Support for managing logs (Format, Output, Level)
  • Support for database operations (RDBMS, NoSQL)
  • Support for Authentication with JWT (Sample Payload, Create, GetClaims)
  • Support for working with Kafka (Schema, Broker, Consumer)
  • Support for Redis operations (Connect, Get, Set, Invalidate)
  • Support for AWS S3 operations (Connect, Get, Upload)
  • Support for Elasticsearch (Connect, Insert, Search)
  • Support for middleware (Rate Limit, Blocking)
  • Easy integration with HTTP request handling (Status, Response, graceful shutdown)
  • Support for GRPC
  • Support for Websocket
  • Support for Ethereum

Demo of a Basic System

  • Support standard authentication functions (Sign In, Sign Up, Change Password, Get Profile)
  • Support admin functions: Get all users, Block IP, Upgrade role, Rate Limit
  • Support sending messages to Kafka brokers and consuming these messages,then inserting them into Elasticsearch
  • Support full-text search using Elasticsearch's API You can import this API collection into Postman as a JSON file using this postman.json file

Image

How to Run

To install database, redis, kafka, elasticsearch. I defined in docker-compose.yml. You need run to start app

docker-compose up --build -d

Then we run go app with Makefile

make run

Prerequisites

  • Go version 1.18

Contributing or Maintaining

This project may have several issues, although I'm not aware of them at the moment. You can contribute to the go-base-service project by submitting documentation issues and pull requests to the repository.

Thanks for visting me

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.