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

It is time to start working with MongoDB!

  1. 📰 Good News app. Backend in Golang behind Traefik reverse proxy with https available.
  2. [in progress] 📰 Good News app. Flutter for rapid mobile applications development.
  3. [in progress] 📰 Good News app. Hummingbird as a promising replacement for frontend frameworks.
  1. Prerequisites & Idea, project and database structure and API endpoints.
  2. Project creation, go modules & GIN (beautiful framework) integration.
  3. Colly usage.
  4. MongoDB setup using official Golang driver.
  5. Running all together locally with Docker and Docker Compose & Traefik v2.0 configuration.
  6. Publishing to Digital Ocean, Let’s Encrypt and DNS Challenge configuration.

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

--

--

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