- Requirement
- How to configure on your local machine
- How to run migration
- How to run on your local machine
- Go 1.18 or above.
- MySQL.
-
Clone this repostory to your local.
$ git clone https://github.com/aririfani/personal-finance-manager.git
-
Change working directory to
personal-finance-manager
folder.$ cd personal-finance-manager
-
Install dependencies
$ go get .
-
Create configuration files.
$ cp env.toml.example env.toml
-
Edit configuration values in
env.toml
according to your setting.
This migration can do these actions:
-
Migration up
This command will migrate the database to the most recent version available. Migration files can be seen in this folder
migrations/sql/
.$ go run main.go migrate:up
-
Migration down
This command will undo/rollback database migration.
$ go run main.go migrate:down
- Running the system.
$ go run main.go
You can find api documentation here