Skip to content

tsel-ticketmaster/tm-event

Repository files navigation

tm-event

Quality Gate Status Bugs Code Smells Coverage Duplicated Lines (%)

This Project is used to handle ticket master customer services including auth, registration and profile.

Prerequisites

What things you need to install the software and how to install them

Golang v1.21.x
Go Mod
....

Installing

A step by step series of examples that tell you have to get a development env running

Say what the step will be

  • Create ENV file (.env) with this configuration:
APP_NAME=tm-event
APP_PORT=9000
APP_ENVIRONMENT=dev
APP_TIMEZONE=Asia/Jakarta
APP_DEBUG=TRUE
APP_TIMEOUT=2
CORS_ALLOWED_ORIGINS=*
CORS_ALLOWED_METHODS=OPTIONS,POST,GET,PUT,PATCH,DELETE
CORS_ALLOWED_HEADERS=
CORS_EXPOSED_HEADERS=
CORS_ALLOW_CREDENTIALS=TRUE
CORS_MAX_AGE=5
REDIS_HOSTS=localhost:6379
REDIS_PASSWORD=redispass
REDIS_DB=0
POSTGRESQL_HOST=localhost
POSTGRESQL_PORT=5432
POSTGRESQL_USER=patrick
POSTGRESQL_PASSWORD=12345678
POSTGRESQL_DBNAME=ticket-master
POSTGRESQL_SSLMODE=disable
POSTGRESQL_MAX_OPEN_CONNS=100
POSTGRESQL_MAX_IDLE_CONNS=100
JWT_RSA=
  • Then run this command (Development Issues)
Give the example
...
$ make run.dev
  • Then run this command (Production Issues)
Give the example
...
$ make install
$ make test
$ make build
$ ./app

Running the tests

Explain how to run the automated tests for this system

Give the example
...
$ make test

Running the tests (With coverage appear on)

Explain how to run the automated tests for this system

Give the example
...
$ make cover

Deployment

Add additional notes about how to deploy this on a live system

Built With

  • Gorilla/Mux The rest framework used
  • [Mockery] Mock Up Generator
  • [GoMod] - Dependency Management
  • [Docker] - Container Management

Authors

  • Patrick Maurits Sangian - Github

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages