In this project we will provide a npm-based setup to write the server part of a UserApp in TypeScript and compile it to JavaScript that runs on our UserApp servers.
Since we use npm to manage the tools we need you have to install the newest stable version of Node.js first before you can start.
Just clone this repository or copy everything to the desired place on your computer. Since there is already some code for a lovely TypeScript demonstration app already in this repository, you can instantly start compiling something!
- open a terminal/commandline in the directory where all the files are now
- run
npm install
and wait for everything to be installed - run
npm run build
to actually compile the dummy app - a "main.js" file will be created
- Tada!
Now you just have to follow the usual UserApp deployment process.
Since we don't yet have a automated process to deploy the TypeScript declaration file to npm yet. You have to update it manually. You should do this every time we change something in the UserApp API. You can follow the UserApps Changelog. It is referenced on our Developer Portal, or you can download it here.