medama-io/medama

builds are broken

Closed this issue · 4 comments

Hey there! Was super curious to try this out but it looks like builds are broken

  1. core taskfile isn't linked to main taskfile
  2. cd core && task build fails
% task build  
task: [generate] go generate ./...
INFO    convenient      Convenient errors are disabled, skip reduce
sed: 1: "api/oas_request_decoder ...": command a expects \ followed by text
generate.go:7: running "./generate.sh": exit status 1
exit status 1

Any insights? Is it an environment issue on my end?

Hey! Thanks for checking this out. I didn't expect this to get so much attention but I'll be putting in a lot of time to get something ready for a "proper release". I just finished a bunch of personal commitments, so the timing lines up perfectly for working on this!

For clarity, the current experience is not "single-binary" yet since the backend and frontend are decoupled into separate processes. After polishing a few bugs, I plan on converting the frontend to an SPA so then we can simply embed JS files into the backend and truly get a "single-binary" experience for setup. Once that's completed, I'll get docs ready for a proper release and versioning!

If you want to play around with it functionally, I have a little test bed (256MB VM) you can check out here: https://medama.fly.dev
Credentials is admin admin (I'll use a less generic default in a later update).

Any insights? Is it an environment issue on my end?

I'll get a fix for that soon (couple hours). That's related to a dependency update which I didn't check super thoroughly. Will ping you when I push a fix.

9379911 should fix it. Seems like it was just a weird gimmick related to sed running differently between macOS and Linux. Let me know if you have any issues building or the fix was unrelated!

For quick testing locally, you can run task dev -- start to run a development build locally in /core. You can then run bun dev in /dashboard and you should have a local development build running. I'll try to get some simple documentation up eventually to help anyone who wants to build from source until I'm happy to go for a proper release.

#20 should resolve this in the meantime. This Dockerfile shows how to build the whole project from source, so you can trace how that works or simply run the Docker image itself! I've got it deploying automatically to fly.io so it's functionally working.

Onto cleaning up the dashboard (backend is pretty much ready) and we'll have a proper end-user release soon 🎉

Hi @lukepighetti, I've gone ahead and cut the first real release v0.1.0 to GitHub. Feel free to check out the README and documentation for more details.

Would love to hear any feedback or issues experienced when it comes to spinning up an analytics instance. Self-hostability is a huge focus for this project so if there are any ways to make it easier, I want to find a way to do that.

Still lots of things to work on, but I think this is very usable for early adopters 👍