Skip to content

deepakandgupta/go-api-try

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang auth try

This is a simple blog site using session based auth Golang, Redis, MongoDB, Gin

How to run

go run *.go

Usage

# Redis is required to store the session of the user. The project uses the default redis port :6379

# Database used: Mongo Db Atlas
add the following to .env file 

MONGODB_DB_USERNAME = <>
MONGODB_PASSWORD = <>
MONGODB_DB_NAME = <>

# db structure: 
## DB name: as defined above in .env 
### Collections : articles, users 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages