kona314 / transit-fedilerts

ActivityPub-compliant server for distributing transit service alerts
36 stars 0 forks source link

Streamline local development setup #3

Open AndrewSwerlick opened 1 year ago

AndrewSwerlick commented 1 year ago

I found this project through mastadon and I've been poking around the last few days. I have a few ideas that might help streamline getting other developers up and running that I've prototyped on my local branch. I'd be happy to submit a PR if you're interested. Specifically I've played with and considered

Let me know if what you think.

kona314 commented 1 year ago

Apologies for the delay!

  1. Feel free to open a PR for this one, I have no objections. Mongo is used because it's used by activitypub-express, which powers this server, so I tapped into it for stored each feeds' seen alert IDs. Personally, I'm not a big fan on MongoDB and have opted for MySQL/Sequelize on other projects.
  2. Will push an update with this soon. I agree it's a little silly, I ended up doing all my testing via ngrok.
  3. My understanding of the ActivityPub spec is that this won't work. The DOMAIN env var controls what other servers as the hostname for the instance, so localhost would, uh, break some things. This is why, per a guide I found elsewhere, I use ngrok when testing locally, you can just start a session and use the generated URL as the DOMAIN value for its lifetime.
kona314 commented 1 year ago

Second item handled in 632f9deb878e34b7002c6ded5d5e918ae3f8a09b, leaving issue open for the first item