Skip to content

Fiztick/catfacter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Scrap a Cat Fact API

Installing mongodb using docker

docker run --name some-mongo -p 27017:27017 -d mongo //make the docker image  
docker start some-mongo //starting the docker if not start

Go dependencies

go mod init app_name //init a go module

install needed driver

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

Mongo Golang quickstart

client, err := mongo.Connect(context.TODO(), options.Client().ApplyURI("mongodb://localhost:27017"))
	if err != nil {
		panic(err)
	}

About

Scrapping data funfact kucing dengan GO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages