You can use this gRPC server with Evans or implement a real client.
Folder with business logic only. This directory doesn't care about what database driver you're using.
/app/controller
folder for functional controller (used in routes)/app/dto
Data Transfer Objects(DTO) folder for transform data before sent to API clients/app/model
folder for describe business models and methods of your project/app/repository
folder for perform database operations for models of your project
Folder with project-specific functionality. This directory contains all the project-specific code tailored only for your business use case.
Folder with platform-level logic. This directory contains all the platform-level logic that will build up the actual project, like setting up the database, logger instance and storing migrations, seeds(demo data).
Folder with proto file and auto-generated go files. This directory contains all the go auto-generated files and proto file.
SERVER_READ_TIMEOUT=60
JWT_SECRET_KEY_EXPIRE_MINUTES_COUNT=30 JWT_SECRET_KEY="secret"
MONGO_INITDB_ROOT_USERNAME=admin MONGO_INITDB_ROOT_PASSWORD=password DOCKER_SERVICE=mongo MONGO_PORT=27017
# .env file
# JWT settings:
JWT_SECRET_KEY="super_secret_here"
JWT_SECRET_KEY_EXPIRE_MINUTES_COUNT=120
# Database settings:
MONGO_INITDB_ROOT_USERNAME=admin
MONGO_INITDB_ROOT_PASSWORD=password
DOCKER_SERVICE=mongo
MONGO_PORT=27017
- Install
docker
,docker-compose
- Rename
.env.example
to.env
- Start a MongoDB container exposing port 27017
- Add new functionalities
- Implement this gRPC server with a client.