golangspell-mongodb
Golang Spell MongoDB is the spell designed for adding the MongoDB infrastructure and application logic to your Golangspell Microservices
Golang Spell
The Golang Spell MongoDB contains the specific commands (and the respective templates) for building MongoDB backed projects in the platform Golang Spell.
Test and coverage
Run the tests
TESTRUN=true go test ./... -coverprofile=cover.out
go tool cover -html=cover.out
Install golangci-lint and run lint:
golangci-lint run
Install
To install the golangspell-mongodb spell use the command
golangspell addspell github.com/golangspell/golangspell-mongodb golangspell-mongodb
This action should be done only once. After doing it, the golangspell-mongodb Spell is installed in your computer and ready for being used
Update
To update the golangspell-core version use the command
golangspell updatespell github.com/golangspell/golangspell-mongodb golangspell-mongodb
golangspell help
Before executing the Golangspell MongoDB commands (mongodbinit, for example), it is necessary to be inside the root directory of an application initialized with the command:
golangspell init [module] [appname]
More details can be found with the command:
golangspell help init
Find more insights on how to use golangspell here: