Skip to content

n8e/docs_api_golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages