Ktor single website is a small project to learn the kotlin language
Set up environment variables
cp .env.example .env
Next run
./gradlew build
docker-compose up --detach
#Development
Run in another terminal continuous build application
./gradlew --continuous build
When gradle end build just restart container
docker-compose restart web
Create table user and insert some users into db
create table user (
id int,
name varchar(63),
email varchar(63)
);
INSERT INTO `user` (`id`, `name`, `email`) VALUES ('1', 'testA', '[email protected]');
INSERT INTO `user` (`id`, `name`, `email`) VALUES ('2', 'testB', '[email protected]');
visit http://localhost:8080/test
#Docs