How to import and export from my php file to react application ( or how to switch PHP file to React please help me guys)
I have over 8000 line of code …
How to import and export from my php file to react application ( or how to switch PHP file to React please help me guys)
I have over 8000 line of code …
Hello and welcome!
This looks like a very old PHP file. Chaining hundreds of hard-coded if or switch statements for product data instead using a data base, this was practice maybe 20 years ago.
Would need to be coded new from ground up to get it into 2024.
Is this still in use by a business? More information would help to suggest a re-haul with PHP and React.
If this is a freelance job, they will have to pay big money for the task, don’t let them go cheap on you.
Hello Daniel,
Thank you so much for your response. Yes, it is still using on business. But I am a junior Developer I don’t know how tov fix it because just before one months I joined job that why they give me task to do Frontend React and Backend PHP Laravel . Please help me give me suggestion if possible for you .
Sorry to hear that, this is actually not a task for a junior developer. Giving you an ancient PHP file and expecting you to turn this into a modern fullstack app.
Is this a German company outsourcing? I can read the product descriptions.
Please give us some details what your task is, what is the end result suppose to look like?
What does the client provide, do they have a database?
If this is their “database” we are looking at, you would have to design an API with a script collecting the product data and storing it into a modern database.
Hey Daniel,
Thanks for your response, this is not outsourcing. I do job. This one project I am using React frontend and backend, Laravel. Furthermore, I am trying to fix over 16000 line hard code but I have no idea how I will fix lets see. Frontend React, Backend Laravel and Database MySQL . But never give up
Hope soon we will find out solution. seee you
That’s the spirit and it will help you grow as a developer: Tackling tasks you have no idea how to at the start. This constant poking in the dark is part of our job anyway.
One of the first steps might be what I suggested: Write a script to collect the product data from the museum PHP file and prepare it for a database. Python is a great tool for that. If you have never worked with Python before: It’s easy to learn the basics during development.
If PHP isn’t mandatory, I would ditch it for React/Django. Django comes with a built-in admin area making your life easier.
Much success on your way.
Hey Daniel,
Thanks for your motivation message… I got more information and ideas from you, now I am trying to solve these problems. Never give up…
Very nice, this code looks more like 2024.
I still find it bold to burden a junior with this specific task, but if you manage to pull it off, you will make a big leap forward in your skills. Don’t forget to record the project for your resume.
Hey Daniel,
Thanks for your encouragement and support.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.