All Projects → anychart-integrations → kotlin-ktor-mysql-template

anychart-integrations / kotlin-ktor-mysql-template

Licence: Apache-2.0 license
This example shows how to run Anychart library with Kotlin and MySQL.

Programming Languages

kotlin
9241 projects
SQLPL
141 projects

Labels

Projects that are alternatives of or similar to kotlin-ktor-mysql-template

Kodein Di
Painless Kotlin Dependency Injection
Stars: ✭ 2,692 (+13360%)
Mutual labels:  ktor
ktor-features-zipkin
A Ktor feature that handles Open Zipkin tracing IDs
Stars: ✭ 15 (-25%)
Mutual labels:  ktor
heterogeneous-microservices
Implementation of the same simple microservice on different frameworks
Stars: ✭ 43 (+115%)
Mutual labels:  ktor
api-service
The REST API backend server for the Jalgaon CoHelp application. Built with Kotlin Ktor.
Stars: ✭ 26 (+30%)
Mutual labels:  ktor
Lavalink.kt
Coroutine based client for Lavalink (Kotlin and Java)
Stars: ✭ 31 (+55%)
Mutual labels:  ktor
obsidian
◼️ A standalone audio sending node for music bots.
Stars: ✭ 22 (+10%)
Mutual labels:  ktor
Saga
Saga pattern implementation in Kotlin build in top of Kotlin's Coroutines.
Stars: ✭ 24 (+20%)
Mutual labels:  ktor
ktor-hexagonal-benchmark
a experimental ktor application using hexagonal architecture
Stars: ✭ 32 (+60%)
Mutual labels:  ktor
ThinkRchive
An app showing all details for various Lenovo Thinkpad models. Made to try out Jepack Compose for Android.
Stars: ✭ 84 (+320%)
Mutual labels:  ktor
ktor-API-examples
Examples with ktor to create an API REST
Stars: ✭ 23 (+15%)
Mutual labels:  ktor
github-profile
See Your Github Profile Summary
Stars: ✭ 21 (+5%)
Mutual labels:  ktor
Scout
Scout is a kotlin multiplatform application that allows users to search and save games to lists to be browsed later.
Stars: ✭ 28 (+40%)
Mutual labels:  ktor
ktfunctional
a functional library for kotlin(android)
Stars: ✭ 19 (-5%)
Mutual labels:  ktor
CleanArchitecture
Kotlin backend based on the Clean Architecture principles. Ktor, JWT, Exposed, Flyway, OpenAPI/REST & KGraphQL/GraphQL generated endpoints, Gradle.
Stars: ✭ 271 (+1255%)
Mutual labels:  ktor
Sunset-hadith
Islamic app written with Kotlin, using KTOR + coroutines + flow + MVVM + Android Jetpack + Navigation component. Old version using RxJava + Retrofit + OKHttp
Stars: ✭ 26 (+30%)
Mutual labels:  ktor
kinsight-multiplatform
Kotlin Multiplatform Concept - iOS, MacOS, WatchOS (SwiftUI), Android (phone and Wear OS), JVM Web Server - Alpha Capture
Stars: ✭ 38 (+90%)
Mutual labels:  ktor
MultiplatformPlayground
Kotlin Multiplatform project in Jetpack Compose & SwiftUI with shared ViewModel layer and File upload
Stars: ✭ 72 (+260%)
Mutual labels:  ktor
Sheasy
This an Android App that helps you share/manage your files on your Android Device through a WebInterface in the Browser - Built with Ktor and Kotlin-React
Stars: ✭ 34 (+70%)
Mutual labels:  ktor
tv-maniac
Tv-Maniac is a Multiplatform app (Android & iOS) for viewing TV Shows from TMDB.
Stars: ✭ 55 (+175%)
Mutual labels:  ktor
exposed-ktor-jwt
example of an exposed+ktor+jwt secured kotlin app sporting an angular frontend
Stars: ✭ 21 (+5%)
Mutual labels:  ktor

AnyChart - Robust JavaScript/HTML5 Chart library for any project

Kotlin Ktor basic template

This example shows how to use AnyChart library with the Kotlin programming language, Ktor framework and MySQL database.

Running

To use this sample you must have Gradle installed on your computer. You can use SDKMAN to install it:

$ curl -s get.sdkman.io | bash
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
$ sdk install gradle

# or simply
$ sudo apt-get install gradle

Also you must have MySQL installed and running. If not, please check out MySQL Download page and follow these instructions.

To check your installations, run the following command in the command line:

$ gradle -version
------------------------------------------------------------
Gradle 2.10
...

$ mysql --version
mysql  Ver 14.14 Distrib 5.5.52, for debian-linux-gnu (x86_64) using readline 6. # sample output

To start this example run commands listed below.

Clone the repository from github.com:

$ git clone [email protected]:anychart-integrations/kotlin-ktor-mysql-template.git

Navigate to the repository folder:

$ cd kotlin-ktor-mysql-template

Set up MySQL database, use -u -p flags to provide username and password:

$  mysql < database_backup.sql

Run application:

$ gradle run

Open browser at http://localhost:8080/

Workspace

Your workspace should look like:

groovy-grails-mysql-template/
    src/
        main/
            kotlin/
                com/
                    anychart/
                        Main.kt   # main Kotlin code
    .gitignore
    build.gradle    #gradle settings
    database_backup.sql   # MySQL database dump
    gradlew
    gradlew.bat
    README.md
    LICENSE

Technologies

Language - Kotlin
Web framework - Ktor
Template engine - kotlinx.html
Build tool - Gradle
Database - MySQL
Database mapping - Exposed

Further Learning

License

AnyChart Kotlin/Ktor/MySQL integration sample includes two parts:

  • Code of the integration sample that allows to use Javascript library (in this case, AnyChart) with Kotlin language, Ktor framework and MySQL database. You can use, edit, modify it, use it with other Javascript libraries without any restrictions. It is released under Apache 2.0 License.
  • AnyChart JavaScript library. It is released under Commercial license. You can test this plugin with the trial version of AnyChart. Our trial version is not limited by time and doesn't contain any feature limitations. Check details here.

If you have any questions regarding licensing - please contact us. [email protected]

Analytics

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].