Hey everyone, New silverstripe user here. Curious as to how much of a pain in the butt it would be to upgrade a large project from 3.7 to the latest version, and then implement a new (react-based) theme
@Brad Vatne I’ve tried this and I can tell you with painful confidence that there is a decent amount of work to be done. I can’t speak as to how long it will take but here’s a porting guide that Silverstripe has made: https://docs.silverstripe.org/en/4/upgrading/upgrading_project/
I would suggest to think about the 4.0 upgrade and the react frontend as separate projects as trying to do both is a mammoth task. We went through the same questioning and decided to stick to 3.6 but implement a react-based theme and then later on if we want to upgrade to 4.0 we don’t have to also do the frontend.
The main thing though is that it’s not impossible, but it will take you a decent amount of time. I can’t say for certain but I speculate around a week depending on the size of your project.
Thanks for your reply. So it’s possible just to use a react based theme and not have to upgrade the framework? that would be optimal I’m just an intern, first internship actually, but I really want to try and make a big difference, and I want to create an SS theme from material-ui dashboard theme. Do you have any advice?
@Brad Vatne No worries! Yeah you can absolutely create a react-based theme on 3.7, we are on 3.6 and have done this instead of upgrading to 4. What advice in particular are you looking for?
@Brad Vatne Also, congratulations on your internship!
I would have no clue where to start haha, Basically, I’ve only used create-react-app, so I’m not too sure on how I would configure webpack/babel to accommodate the templates / includes folder file system
Essentially once you have your built js files with webpack, you just create a .ss template that adds that dist file via a <script> tag in the html head and when you load the page it will load your application.