README ¶ Table Of Contents Todo list Introduction Environment for development Mysql Service Preparation Run service as standalone Database migration Testing Deployment 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 Require to the Mysql database must be run at first Run MySQL with docker 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 Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis cmd account_service command configs internal app configs dataaccess/database generated/grpc/account_service handler/grpc logic utils Click to show internal directories. Click to hide internal directories.