KotlinIMDBDemo
Summary
| Latest Version | Unknown |
|---|---|
| License | Unknown |
| CI Status | Failing |
| Stars | 1 |
| Forks | 0 |
| Open Issues | 0 |
| Last Commit | 2018-07-30 |
| Downloads | 0 |
| Last Indexed | 2026-11-23 14:25 |
Installation
nimble install KotlinIMDBDemo
choosenim install KotlinIMDBDemo
git clone https://gitlab.com/AnimusDesign/KotlinIMDBDemo
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| KotlinIMDBDemo | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://gitlab.com/AnimusDesign/KotlinIMDBDemo |
|---|---|
| Homepage | https://gitlab.com/AnimusDesign/KotlinIMDBDemo |
| Registry Source | gitlab |
README
Summary
This project is a sample project, demonstrating a Kotlin backend. Providing both a REST and GraphQL end point. It was done for the New York Brooklyn Kotlin MeetUp.
Data Source
This is based on sample data from IMDB. See this link. For the available data.
Warning this requires a large SQL dump file.
The link is provided in the docker folder.
Modules / Directories
- api The backend layer.
- Built with Jooby
- REST / GraphQL endpoint.
- Data retrieval helpers.
- imdb Data base bindings.
- Built via Jooq CodeGen.
- A thin JDBC layer.
- apollo-engine The graphql api gateway.
- Utilizing apollo engine. Provide a gateway.
- You will need to register for an api key.
- web A react frontend.
- Retrieves data via REST layer.
- common Data classes for the different sections.
- all The platform agnostic base.
- jvm Bindings for the API backend with GraphQL annotations.
- javascript Bindings for the react frontend.
- Warning bug in Javascript, web frontend. Detailed in web.
Docker Items
- Graphite for metric collection of HTTP service.
- Grafana for viewing metrics.
- Postgres as the primary store.
Deliverable
- REST endpoint providing access to IMDB data layer.
- GraphQL service providing access to IMDB data layer.
- Post metrics to graphite from the HTTP service.
- Consumption of REST endpoints from Kotlin+ReactJS
Running
API
Requires database connection
./gradlew :api:run
Web
See the web folder README, there was a bug I couldn't fix and a symlink is needed.
./gradlew :web:run
NGINX
To prevent cross site origin request. A local proxy server will be needed. Below is the configuration I used.
location /apollo {
proxy_pass http://localhost:4000/apollo;
}
location /swagger {
proxy_pass http://localhost:8080/swagger;
}
location /api {
proxy_pass http://localhost:8080/api;
}
location / {
proxy_pass http://localhost:8088;
}