account_service

module
v0.0.0-...-0cfe5d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2026 License: GPL-3.0

README

Table Of Contents

Todo list

  • Integrate mock framework for automation testing
  • Validate input to grpc server by extended protobuf package
  • Fixbug SQL injection when querying database directly
  • Apply Docker for production releases

Introduction

  • A microservice for managing accounts belongs to Fiagram project.

Environment for development

Mysql

  • Start MySQL database by docker with the default configuration from configs/local.yaml
./scripts/run-docker-mysql-dev.sh

Service

Preparation
  • Download tools for the service
make init
Run service as standalone
  • Run service with the make command
make run-standalone-server
Database migration
  • Add a new schema for database
make migrate-new <name_of_new_schema>

Testing

make test

Deployment

  • Build a docker image with the following command:
./scripts/build-docker-image-deployment.sh
  • After building the docker image for account_service, let's try to deploy services (including mysql database):
make docker-compose-up-test

Directories

Path Synopsis
cmd
account_service command
internal
app

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL