Skip to content

My take on clean arch and Go, this services allow you to create DBless sharable Tickets.

Notifications You must be signed in to change notification settings

joaomarcuslf/ticket-creator

Repository files navigation

ticket-creator

go

This is a service that creates Tickets to be shared for others.

I used clean-arch concepts, and TDD.

image

Getting Started

  1. Copy sample.env to .env and rename the variables if you need
  2. You can run this repo on vscode

image

Or, you can run by doing this:

PORT=8080 go run main.go

Using other clients

This application was built to answer as 3 kinds of client.

App

This is the default, it answer HTML, like a normal webapp.

To set APP mode:

PORT=8080 client=app go run main.go

Rest

This is the Rest client, it answer JSON, and TBD XML.

To set REST mode:

PORT=8080 client=app go run main.go

gRPC

This is the gRPC client, it answer on rpc clients, like Bloomrpc.

To set GRPC mode:

PORT=8080 client=grpc go run main.go

Running Tests

go test -cover ./...

Deploying

On pushing to main, it will automatically push to heroku

Collaborators

Joaomarcuslf's Github picture
joaomarcuslf

⬆ Scroll top

About

My take on clean arch and Go, this services allow you to create DBless sharable Tickets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published