command
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Nov 23, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
MongoDB Example
To run the example follow the steps below:
MongoDB Setup
Run the docker image of MongoDB
docker run --name gofr-mongo -d -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=admin123 -p 2004:27017 mongo:6.0.2
Run
Now run the example on path /zopsmart/gofr/examples/using-mongo
by
go run main.go
Docker Build
To Build a docker image, follow the below steps:
On non linux machines :
GOOS=linux go build main.go
This will build a go binary
docker build -t using-mongo:$(date +%s) .
On linux machines(Ubuntu/Mac):
go build main.go
This will build a go binary
docker build -t using-mongo:$(date +%s) .
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
|
Package stores is a generated GoMock package.
|
Package stores is a generated GoMock package. |
|
|
Click to show internal directories.
Click to hide internal directories.