React, Electron & Braaains - Magikcraft.io Project Update
-
Upload
chris-briggs -
Category
Technology
-
view
187 -
download
0
Transcript of React, Electron & Braaains - Magikcraft.io Project Update
The best-selling PC game to date.Over 106 million copies sold.
The best-selling PC game to date.Over 106 million copies sold.
2nd best-selling video game of all time.
React
●We rebuilt in react●Started using nanoflux fusionator for state●Then moved to Redux●Then moved to RxJS●We started having problems with our shape
so...
In comes TypeScript●What shape is that anyway?●A type for this, a type of that●Add a little linting to help●Age old coding problem - Tab or Space
But what about all the tabs?
Too many tabs
●Each new Lore or Quest opens a new tab●No way to programatically close them
Time for another pivot?
Electron to the rescue!
●Solves the tab problem●Now we only need to code in one browser
But, there is a problem...
Electron needs to be install
●Not massive problem, but a blocker for 8 yr old.●That tab problem didn’t seem so big anymore
Time for another pivot
Back to the Future!
●Back to our react/typescript setup●Over a week to get electron working●3 People working 17-18 hour days
How long to strip Electron from the build?
2 Hours
●And we are back to our React / Typescript app
Of course there were other improvements along the way.
We now have
●PouchDB on client / CouchDB on Cloudant●Websockets - For optimistic updates●We push new Lore and Quests into the client's
browser with Notifications