Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yonas opened this issue Mar 6, 2024 · 4 comments
Open

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

yonas opened this issue Mar 6, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@yonas
Copy link
Contributor

yonas commented Mar 6, 2024

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.

@chamanbravo chamanbravo added the enhancement New feature or request label Mar 6, 2024
@chamanbravo
Copy link
Owner

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.

@yonas
Copy link
Contributor Author

yonas commented Mar 6, 2024

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

Statping-ng has implemented this.

@yonas
Copy link
Contributor Author

yonas commented Mar 7, 2024

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

yonasBSD@7a3f2c8

Dockerfile updates

@chamanbravo
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants