Skip to content

About

Golang implementation of rest api

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Docs API (Golang)

A REST API reated with Golang to demonstrate CRUD functionality with MongoDB.

Setup

To start of, one needs to install Go Once installed and setup, git clone git@github.com:n8e/docs_api_golang.git cd docs_api_golang and install dependencies:

go install

Create a .env file such as below:

JWT_SECRET_KEY="XXXXXXXX"
MONGO_URL="XXXXXXX" # This could be a Mongo Cluster created on https://cloud.mongodb.com, or use local Mongo DB
# MONGO_URL="mongodb://localhost:27017"

With the env file containing correct values we are ready to run the API

go run main.go

About

Golang implementation of rest api

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages