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:
- Host: GitHub
- URL: https://github.com/anthdm/catfacter
- Owner: anthdm
- Created: 2022-12-14T15:17:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-14T15:18:05.000Z (over 3 years ago)
- Last Synced: 2025-05-14T07:34:44.847Z (about 1 year ago)
- Language: Go
- Size: 2.93 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
}
```