-
Firstly, you should download MongoDB, then ..., then mongod
-
Secondly,
go install,intall the key package from github, and put the package on the right relative path which can import the package successfuly, -
You can test your mongoDB by run
go run TestMDB, and you will see the output info if you operate and connect mongoDB success. -
So, to start the Project by run
go run app.go, and use the Post man to the api, you can reffer to themodels.gofile, get the key name (json style)
BranceLee/Go_With_MongDB
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|