Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here


Online mini-IDE for Kotlin

Subscribe to updates I use kotlin-web-demo

Statistics on kotlin-web-demo

Number of watchers on Github 82
Number of open issues 2
Main language Java
Average time to merge a PR 5 days
Open pull requests 9+
Closed pull requests 6+
Last commit over 1 year ago
Repo Created over 7 years ago
Repo Last Updated over 1 year ago
Size 122 MB
Organization / Authorjetbrains
Page Updated
Do you use kotlin-web-demo? Leave a review!
View open issues (2)
View kotlin-web-demo activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating kotlin-web-demo for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

official JetBrains project

This repository contains sources for

Manual installation :whale:

Before starting the Kotlin-Web-Demo execute two gradle tasks: copyKotlinLibs for downloading kotlin libraries for compiler and war for building war-archive from IDE or terminal:

$ gradlew ::copyKotlinLibs
$ gradlew war

By default uses port 8080, and if that's OK, just make it available at http://localhost:8080 via this command:

$ docker-compose up

To change the port number, tweak 'docker-compose.yml':

      - "your_port:8080"

If you'd like to log in to JetBrains account, Google, Facebook, GitHub, or Twitter, add corresponding keys to this configuration file:

    <Environment name="github_key" value="YOUR-KEY" type="java.lang.String" override="false"/>
    <Environment name="github_secret" value="YOUR-SECRET-KEY" type="java.lang.String" override="false"/>

How to add your own courses :memo:

  • Add a course name to manifest.json.
  • Use that name to create a folder next to the Examples folder and put your course content under it.
  • Make a folder for each of the course topics (and don't forget adding them to manifest.json).
  • After that, create:
    1. Test.kt for test questions
    2. Task.kt for preview
    3. Solution.kt for answers to the test questions
    4. - tasks descriptions
    5. manifest.json - to store 'junit' configuration

See Kotlin-Koans for examples.

How to add your dependencies to kotlin compiler :books:

Just put whatever you need as dependencies to via gradle task called library:

 library "your dependency"

NOTE: If the library you're adding uses reflection, accesses the file system, or performs any other type of security-sensitive operations, don't forget to configure the executors.policy.template in web-demo-backend. Click here for more information about Java Security Police

How to set Java Security Police in executors.policy.template

If you want to a customm dependency, use the marker @WRAPPERS_LIB@:

grant codeBase "file:@WRAPPERS_LIB@/junit-4.12.jar" {
  permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
  permission java.lang.RuntimePermission "setIO";
  permission "<<ALL FILES>>", "read";
  permission java.lang.RuntimePermission "accessDeclaredMembers";

Feedback and Issue reporting :construction_worker:

We're constantly working on making it easier to add your own courses to and would appreciate ideas, suggestions, and other feedback, so if you have any, please use our issue tracker to share it with us.

And, of course, if you have any bug reports, you can file them as well If you need any help with compiling or running the project locally, join the #kontributors channel in the Kotlin Slack, and we'll be happy to help you out.

kotlin-web-demo open pull requests (View All Pulls)
  • Fixing typoed multi-declarations.
  • Update Multi-declarations.kt fixed typos
  • Fixed a typo
  • KT-14444: Lazy Property Koan refers to wrong function
  • 1.2.21 Compiler Java -> Kotlin
  • Fix text on HTML Builder example
  • Adding some content, also now works for RPC to another node.
  • Support additional jar-libraries
  • New web demo init
kotlin-web-demo questions on Stackoverflow (View All Questions)
  • How to fix this bug in the Kotlin Web Demo?
kotlin-web-demo list of languages used
Other projects in Java