- Build project with gradlew
- Import database with the dump file (CMS.sql contains admin user for test admin interface)
- Rename
application.conf.distand configure theapplication.confwith your MySQL credentials (./src/main/resources)
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)
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)