I've been prototyping a Biology idle game for a while using vanilla javascript and cloud functions for server authorization.
But after 400 lines of code the project was getting to complicated, and without Azure functions integration I decided to migrate to typescript.
I expended 1 week to build a framework to work with, completely powered by node, I made it public in the following repo: https://github.com/erudisgames/Playfab-Cloud-TypeScript-Bootstrap
It includes the following features:Typescript ready to use after node install.
- Separation of concerns pattern implementation through javascript modules.
- Unit tests available using Jest.
- Dependency injection through /src/utils/service-locator.ts script
- Building script where modules are removed (not supported by PlayFab) and bundled in main.js
Also, there is some of my custom logic from my Biology game (felt there were a few useful lessons there).
I will keep using the repo for my prototype so I hope to keep updating it and fix any issues. Let me know what you think!