This is a basic microservice architecture written in Golang to strengthen my grip on microservices and Golang.
Currently, it features authentication services, with plans to add more services in the future.
To set this up locally, follow these steps:
- Download all of the required dependencies:
go mod download
- Build the project:
go build main.go
- Run the project:
go run main.go
You can also run the project using Docker. Follow the steps below:
- Pull the pre-built Docker image from Docker Hub:
docker pull deshwalankush23/microservice
- Run the Docker container:
docker run -d -p 3000:3000 deshwalankush23/microservice
This command will run the container and map port 3000 of the container to port 3000 on your local machine.
Alternatively, if you have Docker Compose installed, you can use the following command to start the application:
docker-compose up
This will start the service based on the docker-compose.yml configuration file.