Auth Services
Last updated
Last updated
Auth services in bringin backend project. Used grpc server to serve authentication logic. The grpc protocol defined at api/proto folder.
Golang version 1.20
Postgres version 14 as Primary Database
Redis for caching auth user
Make sure you have golang version 1.20
Make sure you have postgres that support uuid, jsonb
Make sure you have installed redis
Make sure you have cores sdk
See Recommmended project structure section.
Make sure you already create database and integrate with uuid extension. Look at this to create uuid extension. Look at folder internal/sqls you can execute sql in that folder to migrate database.
First to run this services, make sure your database and the tables that needed already created. Then create .env file from example.env template. The example.env file look likes below change the configuration and match with your environment.
Note for SECRET_AES_FRONT_PASSWORD, IV_AES_FRONT_PASSWORD, SECRET_AES_BACK_PASSWORD and IV_AES_BACK_PASSWORD value length must be 16 character.
After .env file created. Run this command