No roots, only root~#
ll start by giving you two reasons to finish reading this, and cloning the repo after:
I am currently developing a web app to help local business during the corona virus lockdown impact on economy where I live.
Don't get me wrong: I'm no web dev, full stack dev, senior coder leetcode champion or anything close to it. As far as this tutorial is being written, I'm close to 48 hours old into full stack. I work in AI. My html/cssl skill level is potato.
During my perpetual process of developing ("I want to do this > How do I do it? > It works > I want to do this > ...") I came across the need of some form of user validation.
I thought about Cookies, JWT, Sessions, and other solutions. At first I felt bad, because I would need to learn them all ir order to compare and choose one.
Then it 'clicked' me: reCPATCHA. It suits my needs perfectly.
Close to 3 hours later and I still wasn't able to put it to work properly. Two more hours and I managed to put the pieces together.
You may laugh when you do the math: 5h Divided by 60 lines of code.
It's fine. You are either somewhat experienced in programming or your - first of many - day of sorrow is yet to come...
No hard feelings.
I broke it down to three steps: Register; add it to your code; run it.
Without further ado:
You now have a landing page with a form, which's 'humanity' interaction is validated by google, a success and an error page.
Try to come up with some ideias on what you can do with it. Nonetheless, your first web app* is already done!
If something wasn't clear, contact me. Or check the project files hosted on GitHub. I also started helping newcomers like me on some subreddits.
Be sure to check my hacker noon profile read my other stories!
Hope you enjoy.
*: This is not to be deployed in prodution environment. Flask has a guide.
Create your free account to unlock your custom reading experience.