gloogle icon indicating copy to clipboard operation
gloogle copied to clipboard

docs: add setup instructions to README.md

Open tomalexhughes opened this issue 1 year ago • 7 comments
trafficstars

What?

Adds setup instructions to run the project locally to README.md.

Why?

I wanted to contribute to the project but struggled to get the app working locally.

tomalexhughes avatar Jul 21 '24 17:07 tomalexhughes

Deploy request for gloogle-gleam rejected.

Name Link
Latest commit 6fcfbf9d3570eabffa81a2a871a2538ecc9d1fbd

netlify[bot] avatar Jul 21 '24 17:07 netlify[bot]

@ghivert Please let me know if there's anything incorrect here. I was able to get the app running locally with these instructions, but I'm unsure if I've missed any short-cuts.

I do have an issue where the app crashes when syncing with Hex. I'll create a separate issue for this, unless there's something I'm missing as part of the setup?

tomalexhughes avatar Jul 21 '24 17:07 tomalexhughes

Hi! Thanks for the PR! I'll take a look at it! I'll try to simplify the setup as much as possible. Meanwhile, be careful to properly cache (normally Gloogle does it by default) the hex packages, otherwise it will break hex stats ha ha (I already did it in the past 😅)

ghivert avatar Jul 21 '24 17:07 ghivert

Looks like I'm missing docs on the following env vars:

  • BUCKET_URI
  • SCALEWAY_ACCESS_KEY
  • SCALEWAY_SECRET_KEY

Feel free to push changes to this PR if I don't get to it first :)

tomalexhughes avatar Jul 23 '24 09:07 tomalexhughes

Congrats, you discovered a hidden feature of Gloogle: it saves the entirety of Gleam packages on an S3 bucket, in order to avoid querying too much Hex and breaking the stats (like, querying 1000 times Hex breaks statistics) 😁

I'll take some time to properly work on the README, and to provide an easy way to get started with Gloogle codebase asap (i.e. when I have some time outside of my job)

ghivert avatar Jul 23 '24 10:07 ghivert

Hey! I promise I did not forget you! It's just that time flies really quickly! Now that a rewrite of the search engine is done, I'll take some time to improving the setup of the project. So if you want to contribute in the future, it will not block you! Meanwhile, if you still want to continue on your own, feel free to ping me at any time. 🙂

ghivert avatar Aug 01 '24 18:08 ghivert

I made some changes, to simplify getting started on the project. S3 keys are not required anymore (because they're mainly optimisation).

Otherwise your README is fine, unless now, things have changed a little, and yarn should be use with corepack enable. Do you think you could update it?

ghivert avatar Aug 02 '24 08:08 ghivert