Skip to content

arsura/gourney

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gourney.

Run Infrastructure

make dev-docker-infra

Run API Service

make dev-api

Run Logging Worker Service

make dev-worker

Tools

Commands

Generate MongoDB's Collection Interface (mongo.Collection)

ifacemaker -f  ~/go/pkg/mod/go.mongodb.org/mongo-driver@v1.9.1/mongo/collection.go -s Collection -i MongoCollectionProvider -p adapter -o .type.go

Generate MongoDB's Client Interface (mongo.Client)

ifacemaker -f  ~/go/pkg/mod/go.mongodb.org/mongo-driver@v1.9.1/mongo/client.go -s Client -i MongoClientProvider -p adapter -o type.go

Generate MongoDB's Database Interface (mongo.Database)

ifacemaker -f  ~/go/pkg/mod/go.mongodb.org/mongo-driver@v1.9.1/mongo/database.go -s Database -i MongoDatabaseProvider -p adapter -o type.go

Generate Mock Files

mockery --all --keeptree --dir ./pkg/adapters

File Structure

├── cmd                                     #Contains main applications for this project. e.g. API application, Worker application.
│   ├── api                                 #Contains things only depend on application e.g. API application should have handlers, middleware, routes, etc.
│   ├── worker
├── config                                  #Load and validate config from environment variables to use as a dependency.
│   ├── config.go
│   └── config.yml
├── deployments
│   └── Dockerfile.api
├── developments
│   ├── docker-compose.infra.yml
│   ├── docker-compose.yml
│   └── Dockerfile.api
├── pkg
│   ├── adapters                            #Contains the inbound/outbound adapters e.g. database connection, message queue connection.
│   ├── constant
│   ├── logger
│   ├── models
│   ├── repositories                        #Contains the database repositories.
│   ├── services                            #Contains the services for external communication e.g. sending API requests, sending messages through a message queue.
│   ├── usecases                            #Contains the use cases.
│   ├── utils
│   └── validator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published