Categorygithub.com/437d5/jwt-auth
repository
0.0.0-20240626153409-143e19edde71
Repository: https://github.com/437d5/jwt-auth.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

JWT-Auth Microsevice

To start it you have to clone it with: git clone https://github.com/437d5/jwt-auth

Then u have to create .env file in root directory with this structure:

image

The next step is to start MongoDB and create database, collection and user also you need to specify two new unique inedexes to escape user duplicates.

db.users.createIndex({"name": 1}, {"unique": true})
db.users.createIndex({"email": 1}, {"unique": true})

After it

go mod tidy

go build cmd/main/main.go

./main

You can check it out using evans gRPC client

https://github.com/ktr0731/evans

Screenshot from 2024-06-26 18-18-23