Turn this script into a web page for end-users
If anyone is interested to work on this with me. please let me know.
@SharlSherif I can help if you want to
@JulyanoF Sure, I think the steps are turning it into an express API endpoint and make a simple UI using bootstrap or something then figuring out the free hosting suitable. Let me know which part you want to contribute to.
@SharlSherif I thought using bootstrap too. I'm a fullstack developer (PHP). I can contribute with anything ;)
I like to use CakePHP. There are many libraries to simplify many tasks
I just see you are using web scraping in NodeJS to get some fake data.
@JulyanoF I'm not really interested in rewriting the script in another language. If you want, I could provide API endpoints and you use it to make the webpage in bootstrap.
@SharlSherif okay, I can make only font-end webpage
Sorry. Didn't mean to mention this issue. It was a mistake.
I was trying to turn this into into a serverless function and then got to know about #6.
If there is a way to re accomplish this, I would love to help.
@maximousblk Thanks for your interest, I recently found out about another library that would give free access to Lynda, Udemy courses but I can't remember its name! I will try to find it again.
@maximousblk I think the library is starklibrary.org, someone else mentioned it here #https://github.com/SharlSherif/Generate-HoustonLibrary-Codes/pull/4
@SharlSherif I don't really know how these libraries work, If the main script works (or you could explain it a bit) I can convert it into an "API" which can work without anything but a browser.
From what I understand, this just goes to a library's website and applies for a library card which you can use for free access to Lynda ( now LinkedIn education #7 ) and similar services that allow this.
starklibrary.org/home/contact-us/register-for-a-library-card seems to be inaccessible. It can be a ip block for people outsite the area.
@maximousblk Yea they seem to block people outside the US. It was a coincidence that I was using a VPN when I opened that link. we can easily bypass that anyway, all the script does is that it opens a website that has fake generated info for a person's name, address, gender, etc and just scrapes it from there to fill the registration form.
Blocking is not a problem if you use it on your local machine. When deploying it as a serverless function, it is run on many servers across the globe. So until you are in US, it won't work. Although, it may work it you use a vpn to access the function. We'll see about that.
First we need this to be working locally.