The point of this project is to demonstrate how simple it is to create a robust, multi-functioned API in Golang
Docker
(Recommended Docker For Mac)go
We recommend go 1.7golang/dep
To get the server up and running run:
docker-compose up
To run the server without docker and seed data you will need to make the following change:
config.toml
:
# mongo
[database]
host = "localhost"
port = 27017
# api documentation
[docs]
url = "../docs/index.html"
By doing this you will need to start a local instance of mongo as well:
mongod
Next is to edit the config file path in main.go
main.go
:
c := config.NewConfig("config.toml")