Skip to content
This repository was archived by the owner on Dec 10, 2023. It is now read-only.

tinfoil-knight/rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Directory Structure

.
|____contact.go
|____contact__test.go
|____config
| |____config.go
|____models
| |____models.go
|____helpers
| |____cache.go
| |____mongodb.go
|____go.sum
|____go.mod
|____config.yaml
|____README.md
|____.air.conf
|____.gitignore

Application Structure

TBD

Installation

Fork the repo and pull it to your workstation.

A config.yaml file is needed to run the application. You'll need to install Status Bot for updates in slack. Click the button below to add the Status Bot to your Slack workspace.

Add to Slack

Example YAML configuration

---
COLLECTION: contacts
DB: phonebook
TESTDB: phonebook-test
MONGODB-URI: "mongodb://localhost:27017"
PORT: "8080"
SLACK-HOOK: <Your Slack-Webhook-URL goes here>

Running Tests

go test -v

Current Test Coverage: 51.4%

Author

Kunal Kundu @tinfoil-knight

Acknowledgements

Matthias @qarchmage for fixing race condition in database while testing.

License

TBD

About

RESTful API in Go w/ MongoDB

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages