Giter VIP home page Giter VIP logo

mahirmahbub / book_inventory Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 1013 KB

A book inventory system with full JWT authentication and authorization. Implemented using Gin web framework, Gorm etc. ELK (Elastic search, logstash, Kibana) along with database sync with Postgres is implemented.

Go 97.71% Shell 1.50% Dockerfile 0.80%
gin golang gorm swagger elasticsearch jwt-authentication kibana logstash postgresql

book_inventory's Introduction

Book Inventory System

Using GIN Framework and GORM

  • Added dockerization with postgres
  • Added Elasticsearch sync with Postgres using logstash
  • Added Kibana for inspection
  • Added swagger specification
  • Added basic api for books and author
  • Added bearer jwt auth from scratch
  • Refresh Token Automatic Reuse Detection
  • User Verification and Password Change Multiple Token-link Detection

Services

  • book service

    • user

      • Get Book
      • Post Book
      • Get Paginated Books
      • Update Book
      • Delete Book
      • Get Author
    • admin

      • Get Book
      • Post Book
      • Get Paginated Books
      • Update Book
      • Delete Book
      • Post Author
      • Get Author
      • Get Paginated Authors
      • Update Author
      • Delete Author
      • Create Admin
  • user service

    • JWT Authentication
      • Register
      • Log In
      • User Verification with Resend and Old Token Detection on Resend and Expiry.
      • Password Change with Resend and Old Token Detection on Resend and Expiry.
      • Access Token and Refresh Token
  • elastic search

    • Indexing book and author
    • Get paginated Authors by name search(fuzzy search in first_name, last_name) (only for user)
    • Get paginated Books by name search(fuzzy search in title, author's first_name, author's last_name) (only for user)
  • Postgres to ELK Sync(Query-based CDC)

                                +---------------v------------------+
                                |                                  |
                                |              data                |
                                |                                  |
                                +---------------+------------------+
                                                |
                                                |
                                                |
                                                |
                                         +------v------+
                                         |             |
                                         |  PostgreSQL |
                                         |             |
                                         +------^------+
                                                |
                                                |
                                                |
                                +---------------v------------------+
                                |                                  |
                                |            Logstash              |
                                |                                  |
                                +---------------+------------------+
                                                |
                                                |
                                                |
                                                |
                                        +-------v--------+
                                        |                |
                                        | Elasticsearch  |
                                        |                |
                                        +----------------+
    

book_inventory's People

Contributors

mahirmahbub avatar

Stargazers

Haitham Rageh avatar

Watchers

James Cloos avatar  avatar

Forkers

dark-vinci

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.