Skip to content

ifaniqbal/go-base-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Setup

  1. Install Go version 1.19
  2. Install Mockery version v2.13 or later
  3. Use GoLand (recommended)
  4. Download dependencies with command go mod download
  5. Create .env file based on .env.example

Run

Use this command to run API app from root directory:

go run cmd/api/main.go

Use this command to run consumer app from root directory:

go run cmd/consumer/main.go

Use this command to run scheduler app from root directory:

go run cmd/scheduler/main.go

Unit Tests

Generate Mocks

To generate mock, run:

mockery --all --keeptree --case underscore --with-expecter --output ./test/mocks

Run Unit Tests

To run unit tests:

go test ./...

TODO README

This README would normally document whatever steps are necessary to get your application up and running.

What is this repository for?

How do I get set up?

  • Summary of set up
  • Configuration
  • Dependencies
  • Database configuration
  • How to run tests
  • Deployment instructions

Contribution guidelines

  • Writing tests
  • Code review
  • Other guidelines

Who do I talk to?

  • Repo owner or admin
  • Other community or team contact# base-project

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages