Skip to content

Example of REST API application written in Kotlin/Ktor that provide functionality for a blog.

License

Notifications You must be signed in to change notification settings

albertoadami/ktor-blog-api

Repository files navigation

Ktor Blog API

A RESTful API built with Ktor for managing blog posts, users, and comments. This project demonstrates best practices in Kotlin-based backend development, focusing on modular design, testing, and clean architecture.

Features

  • User Management: Create, update, and delete user accounts.
  • Blog Posts: CRUD operations for blog posts with validation and tagging support.
  • Comments: Add, edit, or delete comments on posts.
  • Authentication: JWT-based authentication for secure access.
  • Database Integration: Uses PostgreSQL for data persistence, managed with Exposed ORM.
  • Testing: Comprehensive test coverage with Kotest and Testcontainers.

Getting Started

Prerequisites

To run this project locally, ensure you have the following:

Setup Instructions

  1. Clone the Repository

    Clone the project to your local machine:

    git clone https://github.com/albertoadami/ktor-blog-api.git
    cd ktor-blog-api

About

Example of REST API application written in Kotlin/Ktor that provide functionality for a blog.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published