📰 Good News app. Backend in Golang. MongoDB setup using official Golang driver.

It is time to start working with MongoDB!

MongoDB configuration

API_GIN_DEBUG_MODE=trueMONGO_ADMIN=GGCTeamBatr
MONGO_ADMIN_PSWD=MySuperSecretPassword
MONGO_DB_USER=suuuper_user
MONGO_DB_PSWD=soop3r_U$eR_PSWD
MONGO_DB_NAME=good_news_db
type EnvVariables struct {
DebugMode bool
MongoDBName string
MongoDBURL string
}

db/ folder structure

> go get go.mongodb.org/mongo-driver/mongo

just a lazy human who is trying to optimize and automate every process in life. and yeah, on the side I am a serial entrepreneur and MS in CS. batyr.io

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store