Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.55 KB

README.md

File metadata and controls

20 lines (16 loc) · 1.55 KB

TypeScript-UserApp-Server

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.

Dependencies

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.

How does it work?

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!

How to test it?

Now you just have to follow the usual UserApp deployment process.

Notice: TypeScript declaration file update

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.