Skip to content

sylvainSUPINTERNET/ktor-CMS

Repository files navigation

Ktor - Mini CMS (Kotlin)

Get started

  • Build project with gradlew
  • Import database with the dump file (CMS.sql contains admin user for test admin interface)
  • Rename application.conf.dist and configure the application.conf with your MySQL credentials (./src/main/resources)

Admin (Important)

Make sure you imported the dump CMS.sql for admin features

    email: admin@admin.fr
    password: admin

(Note : password using BCrypt -> https://github.com/AndreasVolkmann/realworld-kotlin-ktor/blob/master/src/main/kotlin/me/avo/realworld/kotlin/ktor/auth/BcryptHasher.kt)

Features

User (Not logged in)

  • Home page
    • List articles
    • Authentication form (admin)
  • Article page
    • Add comment
    • List comments

ADMIN (logged in)

  • Home page
    • List articles
    • Authentication form (admin)
    • Logout
  • Article page
    • Add comment
    • List comments
    • Delete comments
    • Delete article (comments cascade)

Tests (data automatically generated inside the test file)

  • Each features are tested : ./src/test/kotlin/joly/sylvain/cms/*

BONUS

  • BCrypt for hash password admin
  • application.conf for database settings (MySQL)

About

Mini CMS with Kotlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors