what is the simples way(s) (minimizing accidental ...
# present-company
v
what is the simples way(s) (minimizing accidental complexity) to spin up a basic website with a form behind authentication that triggers a serverless function on submission (supplying auth context, so I can be sure in the function about the identity of the user) ?
some options I’m aware of: Netlify functions seems promising, though it seems that I can’t use both Netlify forms & functions together for the above use-case 😛 have a bit of concern on how well would it scale for more complex use cases
AWS Amplify seems like it tries to enable something like this, but reading the docs didn’t inspire me simplicity-wise =\ LMK if anyone had good experiences with it
Netlify functions have been giving me
Function logs are currently unavailable. We are working on resolving the issue.
the whole day 😞 and Amplify stuff is complex and underdocumented 😞
m
if you handle the authentication with a local user table then a php file 😄
t
Maybe you could hack something together with an embedded google form? Or some other form as a service provider
1
j
I unironically agree with @Mariano Guerra. As somebody who went straight from managed hosting (cpanel) to aws, now that I've started managing a site by sshing into a box running apache, I've hit far fewer roadblocks, and the ones I've hit have been simpler to sort out. That being said, I recently made a google sheet act as a basic cms for a site. So that could be an option too.
v
@Tak Tran I’m intrigued by your suggestion! I think you can trigger AWS Lambda or Github Action via Zapier/etc based on entries to Google Forms/Airtable. And presumably you can force people to log-in with their google identity for auth purposes & record that. I wish I thought of that two days ago 😛 Only thing I’m not sure about is how do you enforce “unique per user field” (e.g. username)
I’m not convinced by “forego static+serverless” requirement & just spin up the server 🙂 Looked up what it’d take to do that in Python+Flask (as I’d go there given my background vs php). And while I think is/can be/ conceptually simpler, There is a lot more code to write & infra to properly setup. & more complexity lurks around the corner..
I think Netlify functions could be/are nice, but I’m still getting https://futureofcoding.slack.com/archives/C01932BJGE8/p1610868785005700?thread_ts=1610844320.005100&cid=C01932BJGE8 which is either bad ux (in case it’s me doing something wrong) or horrible infrastructure management (in case it’s been down for 3 days)