repository
0.0.0-20240229094527-85555b0959b9
Repository: https://github.com/bowobp/mydate.git
Documentation: pkg.go.dev
# README
README
Setup
- Install Go version 1.20
- Install Mockery version v2.13 or later
- Use GoLand (recommended)
- Download dependencies with command
go mod download
orgo mod tidy
- Create
.env
file based on.env.example
- Create database "myDate" or anything you want, you can set up the connection to database on db/gorm.go
- 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 ./...