{"repo":"JetBrains/kotlin-compiler-server","free":true,"listed":false,"github":"https://github.com/JetBrains/kotlin-compiler-server","clone":"git clone https://github.com/JetBrains/kotlin-compiler-server.git","description":"Server for executing kotlin code","language":"Kotlin","stars":282,"topics":["kotlin","kotlin-playground","kotlin-compiler","spring","spring-boot"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Kotlin compiler server A REST server for compiling and executing Kotlin code. The server provides the API for Kotlin Playground library. How to start :checkered flag: Simple Spring Boot application Download Kotlin dependencies and build an executor before starting the server: Start the Spring Boot project. The main class: com.compiler.server.CompilerApplication With Docker To build the app inside a Docker container, run the following command from the project directory: From Amazon lambda Based on aws-serverless-container. Getting .zip file from build/distributions . Lambda handler: com.compiler.server.lambdas.StreamLambdaHandler::handleRequest . Publish your Lambda function: you can follow the instructions in AWS Lambda's documentation on how to package your function for deployment. From Kotless Add Kotless and remove aws-serverless-container =) API Documentation :page with curl: Swagger url: http://localhost:8080/api-docs/swagger-ui/index.html How to add your dependencies to kotlin compiler :books: Just put whatever you need as dependencies to build.gradle.kts via a task called kotlinDependency : 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 executor.policy . Click here for more information about Java Security Policy . How to set Java Security Policy in executors.policy If you want to configure a custom dependency, use the marker @LIB DIR@ : CORS configu","default_branch":null,"files":null,"tree":[],"storefront":"/r/JetBrains","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/JetBrains/kotlin-compiler-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}