An open API service indexing awesome lists of open source software.

https://github.com/anthdm/catfacter

A simple JSON API that can fetch cat facts :shrug:
https://github.com/anthdm/catfacter

Last synced: 11 months ago
JSON representation

A simple JSON API that can fetch cat facts :shrug:

Awesome Lists containing this project

README

          

## Installing mongodb

### Installing mongodb with Docker

```
docker run --name some-mongo -p 27017:27017 -d mongo
```

### Go dependencies

```
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)
}
```