Skip to content

HardcoreMagazine/FULLSTACK-Ktor-React-app

Repository files navigation

FULLSTACK Ktor&React multipage application

My Y3 uni coursework. Ignore this.

Project structure:

/ [[project root/server module]]
|
|-- KWmodel/ [[project model]]
|   `-- src/commonMain/kotlin/
|       |-- Config.kt [server configuration, routes]
|       |-- Item.kt [interface for <element> storage]
|       |-- Student.kt [student description]
|       |-- Teacher.kt [teacher description]
|       `-- Lesson.kt [lesson description]
|
|-- KWclient/ [[client/UI module]]
|   `-- src/main/kotlin/
|       |-- App.kt [home/root page routes]
|       |-- component/.. [React components for pages]
|       `-- wrappers/.. [~query system files]
|
`-- src/main/ 
    |-- kotlin/server/
    |   |-- repo/.. [data repository, basic actions]
    |   |-- rest/.. [<element> queries]
    |   |-- index.kt [home/root page]
    |   `-- Application.kt [server start point]
    |
    `-- resources/ [JS application]
        |-- KWclient.js [auto-generated by KWclient]
        |-- KWclient.js.map [auto-generated by KWclient]
        `-- logback.xml [DEBUG: logger configuration]

In order to function correctly project must be built "from head": model -> client -> server