Skip to content

VinayakBagaria/Auth-Micro-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker run -it --rm --name mongodb_container \
-e MONGO_INITDB_ROOT_USERNAME=admin \
-e MONGO_INITDB_ROOT_PASSWORD=admin \
-v mongodata:/data/db -d \
-p 27017:27017 mongo

docker exec -it mongodb_container /bin/bash

mongosh -u admin -p admin --authenticationDatabase admin

db.createUser({ user: 'user', pwd: 'password', roles: [{role: 'readWrite', db: 'microservices'}]});
protoc --go_out=. --go_opt=paths=source_relative \
    --go-grpc_out=. --go-grpc_opt=paths=source_relative \
    messages/auth.proto

mv messages/*.pb.go pb

About

Auth Microservice implemented in Go with gRPC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published