GithubHelp home page GithubHelp logo

isabella232 / kotlin-fullstack-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kotlin/kotlin-fullstack-sample

0.0 0.0 0.0 202 KB

Kotlin Full-stack Application Example

Home Page: https://kotlinlang.org

License: Apache License 2.0

Kotlin 96.13% CSS 3.47% JavaScript 0.40%

kotlin-fullstack-sample's Introduction

Warning

This sample uses plugins, which will be deprecated. There is a new repository with actual Kotlin version and Kotlin/JS Gradle plugin.

Thinkter: A Kotlin Full-stack Application Example

Thinkter is an example of a full-stack Web application built with Kotlin. The backend runs on the JVM, and the browser front-end uses React. The example implements a very simple microblogging application.

Backend

The backend of Thinkter is built using Ktor, a Web framework built by the Kotlin team. For data persistence, it uses H2, allowing you to run the example without the need to configure an external SQL server. The HTTP server implementation is provided by Jetty.

To run the backend, use ./gradlew backend:run, or open Thinkter as a project in IntelliJ IDEA and execute the shared run configuration Backend :: Jetty. This will start serving the REST API of the backend on port 9090.

Frontend

The frontend of Thinkter is built using React. To adapt the React APIs to Kotlin, it incorporates a set of wrappers, which you can also use in your projects and adapt to your needs.

The project is built using webpack and the Kotlin frontend plugin.

To run the frontend, use ./gradlew frontend:run. This will start a webpack server on port 8080. Navigate to http://localhost:8080 to start using the application.

kotlin-fullstack-sample's People

Contributors

andrewarrow avatar bashor avatar devulex avatar elizarov avatar eriwen avatar ilgonmic avatar orangy avatar oshai avatar wrparrish avatar yole avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.