Coder Social home page Coder Social logo

bank-core's Introduction

Condensat Bank backend

This repository hold all the backend components for Condensat Bank.

Logging system

Start mariadb

Log can be stored into mariadb.

docker run --name mariadb-test -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_USER=condensat -e MYSQL_PASSWORD=condensat -e MYSQL_DATABASE=condensat -v $(pwd)/tests/database/permissions.sql:/docker-entrypoint-initdb.d/permissions.sql:ro -p 3306:3306 -d mariadb:10.3

Start redis

Redis is used as a cache for logging to avoid message loses.

docker run --name redis-test -p 6379:6379 -d redis:5-alpine

Start the log grabber

The log grabber fetch log entries from redis and display them. Log entries are remove from redis after store

go run logger/cmd/grabber/main.go --log=debug > ../debug.log

Start the log grabber with database

The log grabber fetch log entries from redis and store them to database. Log entries are remove from redis after store

go run logger/cmd/grabber/main.go --log=debug --withDatabase=true

Use RedisLogger

A logging component setup a RedisLogger and log normally.

go run logger/cmd/example/main.go --appName=Foo --log=debug

Messaging system

Nats is used for internal messaging system between components.

Start nats

docker run --name nats-test -p 4222:4222 -d nats:2.1-alpine

Unit testing

go test -v ./...

bank-core's People

Contributors

marsu-dev 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.