|
|
|
|
|
by antjanus
4367 days ago
|
|
I think this is the root of it. Looking at the repo, you shouldn't have to go through 20 steps to just install the app. I believe Node is just for compiling and gulp stuff, so that's fine for front-end. I can't say I'd pass the interview but my idea of how this would work would be: - simple instal.php script that would use PHP's PDO to create a DB and a table with necessary info
- simple api.php script that would take API calls in order to save scores and that's it. You could easily do this in Node as well thus keeping everything javascript
- javascript front-end with no PHP involved there. An actual index.html file with everything in it, referencing one (non-minimized) JS file and whatever images and CSS. This is hindsight 20/20 obviously especially since we all want to show EVERYTHING we know during an interview and I'm guilty of doing things like this as well. I'm guilty of doing the opposite too, keeping things too "prototype-y" and messy. |
|