repository
0.0.0-20241105075319-0ba6b04d5846
Repository: https://github.com/frsfahd/go-expensetracker.git
Documentation: pkg.go.dev
# README
go-expenseTracker
Expense Tracker Rest API with multi-users capability. Each user will have his own expense records.
Utilizing golang net/http
for http server, sqlc
and golang sql
for database-related operation.
Featured
- Authentication and Authorization with JWT
- Logging middleware
- Open API Spesification version 3
- Interactive API Docs
Getting Started
Live Demo : https://xpense.fly.biz.id/
To run in local :
- clone this repo
- create new
.env
file (seeenv-sample
) - ensure postgres instance is running. In case you don't have one, create a new postgres container
make docker-run
- create db tables and function, execute
schema.sql
andfunctions.sql
- run the api
make run
MakeFile
Run build make command with tests
make all
Build the application
make build
Run the application
make run
Create DB container
make docker-run
Shutdown DB Container
make docker-down
Live reload the application:
make watch
Clean up binary from the last build:
make clean