Skip to content

Knuddels/UserApp-ZiegenphobieTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZiegenphobieTS

This is the TypeScript version of the Knuddels User Apps demonstration app Ziegenphobie that shows how to work with the User Apps HTML-UI. More details can be found on https://developer.knuddels.de.

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 in the root directory
  • a "app.js" will be created in the "www" directory
  • 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.