Skip to content

vitec-memorix/ktor-starter

Repository files navigation

Ktor Starter project

This is the Vitec Memorix Ktor starter project. This project is meant as a starting point for small projects and coding assignments.

This project contains the following components:

Using this template

On https://github.com/vitec-memorix/ktor-starter:

  • In the top right, above the file list, click on "Use this template"
  • Select "Create a new repository"
  • Follow the steps to create a new repository from the template

Setup

Copy the example .env file and fill in a database password:

cp .env.dist .env

You might want to change the database hostname to something more specific in both .env and docker-compose.yaml to prevent conflicts with other projects.

Depencies

Dependent services (in this case the PostgreSQL database) are managed using Docker Compose.

Starting

docker compose up -d

Stopping

docker compose stop

Resetting

Beware: this will delete all the data in your database!

docker compose down -v

Running the application

./gradlew run

About

KTOR starter template repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages