upstat icon indicating copy to clipboard operation
upstat copied to clipboard

[ Feature Request ] Run as a single binary. Support sqlite.

Open yonas opened this issue 1 year ago • 4 comments

It would be very convenient to run this as a single binary without requiring nodejs.

With sqlite support, no database would need to be installed.

yonas avatar Mar 06 '24 11:03 yonas

It would be very convenient to run this as a single binary without requiring nodejs. With sqlite support, no database would need to be installed.

I have a plan for adding sqlite support. And have added for docker for convenient.

It would be very convenient to run this as a single binary without requiring nodejs.

I am not really sure how can I do this, I will research and try to implement this. I gladly welcome your contributions and feedbacks. Thank you.

chamanbravo avatar Mar 06 '24 12:03 chamanbravo

I am not really sure how can I do this, I will research and try to implement this.

Statping-ng has implemented this.

yonas avatar Mar 06 '24 16:03 yonas

I was able to accomplish this using Go Fiber's embedFS middleware:

https://github.com/yonasBSD/upstat/commit/7a3f2c860770d594fe242a4846a1c46df0f74690

Dockerfile updates

yonas avatar Mar 07 '24 03:03 yonas

Hey I saw your commits and looks like you are trying to add sqlite support. But don't replace postgres with sqlite. Some might want to add a external database. You can keep both like this.

https://github.com/create-go-app/fiber-go-template/blob/master/platform/database/open_db_connection.go

chamanbravo avatar Mar 07 '24 15:03 chamanbravo