My Background
I am just finished and started looking for a (junior) developer position. I have about 2 years experience with web development (plain PHP, JS, HTML, CSS, jQuery). Of course a couple of headhunters wanted me as a client, so I let them give me offers and sometimes the offer was for a job that required way more experience. But I still gave those a shot but clarified that I am inexperienced (especially with OOP)
The Job Offer
At some point a Headhunter got me an interview with a company that produces animal food for cattle and such. It was about 4 hour drive but they offered 100% remote. It was an offer for a PHP developer. What they wanted me to do was built a web application for them, in which you basically can see the current production state. It was meant for the sellers, so they always know how much they can sell, how much is left, how long it would take for the next charge and so on.
Here is the thing though: I would be the ONLY developer, my superior would be a guy who studied computer economics and just finished like a year ago and he doesn't know anything about development. They offered an okay pay, more than the startup offered me where I learned about web development but less than most other companies. They also offered that I get like 5% or so from the app, because IF it works well, they want to sell it to others in the industry.
Question
Is it normal to offer a small percentage of profit from an app to a developer? Might this be a red flag?
Personal Opinion
I am way to inexperienced to take the job. I would be afraid that security won't suffice and it could end up in a disaster. It is also not good for me that there is NO ONE with any development experience. And they also asked for rather shady things, like telling the headhunter I wont take the job but talk to them behind the headhunters back, so they wont have to pay them. The CEO was very old-school and he told me very often that getting along on a personal level is much more important than knowledge.
But apart from this, for the future, I was wondering if this is normal or if this could be actually dangerous. I was thinking about taking this very briefly because of the share and to extend my portfolio so professionally I would look better to new employers. Disadvantage would be of course that I would just do it my way and not learn proper techniques and such.
I am really curious if in the future I should consider such an offer or not.