Categorygithub.com/bowoBp/myDate
repository
0.0.0-20240229094527-85555b0959b9
Repository: https://github.com/bowobp/mydate.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

README

Setup

  1. Install Go version 1.20
  2. Install Mockery version v2.13 or later
  3. Use GoLand (recommended)
  4. Download dependencies with command go mod download or go mod tidy
  5. Create .env file based on .env.example
  6. Create database "myDate" or anything you want, you can set up the connection to database on db/gorm.go
  7. Run Migration with command make migrate_up then will be created schema on database

Run

Use this command to run API app from root directory:

go run cmd/api/main.go

Unit Tests

Generate Mocks

To generate mock, run:

mockery --all --keeptree --case underscore --with-expecter

Run Unit Tests

To run unit tests:

go test ./...