Steps to Setup this workflow in your machine
-
Install Docker & Code Editor
-
Clone this repo by typing
git clone https://github.com/mohammad-quanit/auth-service.git
and go to auth-service directory bycd auth-service
. -
Run Command
go install && go mod tidy
-
Run PostgreSQL using docker by runnning command
docker run -d -e POSTGRES_PASSWORD=postgres --name pg -p 5432:5432 postgres
-
After running postgresql db run
go run main.go
and this will start go server. -
Test the endpoints by using API testing tool like Postman or Thunder Client on
localhost:8080/signup
to create first user.