Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankush-web-eng/microservice
A backend for my websites built with monolith architecture written in golang. This will be a unified place for all of such services that I make again and again in different projects.
https://github.com/ankush-web-eng/microservice
cloudinary docker golang gomail gorm gssoc-ext hacktoberfest jenkins mux-router postgresql
Last synced: about 1 month ago
JSON representation
A backend for my websites built with monolith architecture written in golang. This will be a unified place for all of such services that I make again and again in different projects.
- Host: GitHub
- URL: https://github.com/ankush-web-eng/microservice
- Owner: ankush-web-eng
- Created: 2024-09-08T04:43:38.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-09-23T04:41:14.000Z (3 months ago)
- Last Synced: 2024-11-17T05:39:41.581Z (about 2 months ago)
- Topics: cloudinary, docker, golang, gomail, gorm, gssoc-ext, hacktoberfest, jenkins, mux-router, postgresql
- Language: Go
- Homepage: https://sudodev.ankushsingh.tech
- Size: 7.94 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang Microservice
## Introduction
### Hey GO-pher
This is a basic microservice architecture written in Golang to strengthen my grip on microservices and Golang.
## Featuring
Currently, it features authentication services, with plans to add more services in the future.
## Setup Locally
### Using Go
To set this up locally, follow these steps:
1. Download all of the required dependencies:
```bash
go mod download
```2. Build the project:
```bash
go build main.go
```3. Run the project:
```bash
go run main.go
```### Using Docker
You can also run the project using Docker. Follow the steps below:
1. Pull the pre-built Docker image from Docker Hub:
```bash
docker pull deshwalankush23/microservice
```2. Run the Docker container:
```bash
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.
### Using Docker Compose
Alternatively, if you have Docker Compose installed, you can use the following command to start the application:
```bash
docker-compose up
```This will start the service based on the docker-compose.yml configuration file.
## Enjoy Coding with Golang!