RestApi with golang MongoDB
Used technologies:
# Clone this repo
$ git clone https://github.com/matheuscaet/go-api.git
# Access project folder
$ cd go-api
Create a file as .env and insert the environment variables.
You must to use this variables:
Variable | Value |
---|---|
API_PORT | 3001 |
MONGOURI | mongodb+srv://(USER):(PASS)@cluster0.h5mtb.mongodb.net |
API_KEY | anyApiToken |
# Exec application
$ go run main.go