To run Go API, you need the following:
- Golang 1.16 or higher
- Running RabbitMQ environment
- Running Redis environment
- Running mongodb environment
-
Clone the source code from the repository:
-
Install the required dependencies
go mod download
- Run the following command
- run api server
go run main.go server
- run worker server
go run main.go worker default_queue
- options:
go run main.go worker [queue-name]