Simple project to study ktor
Study observations to me
The template procfile necessary to push to heroku is
web: ./build/install/[projectname]/bin/[projectname]
Where [projectname] is name find in settings.gradle, on this project for example this name is "com.pliniodev.ktor-sample"
heroku login
To push application on server
git push heroku master
To start Procfile
heroku ps:scale web=1
To open the application
heroku open
https://ktor.io/docs/status-pages.html#install_plugin
https://ktor.io/docs/interactive-website-add-persistence.html#model
https://ktor.io/docs/html-dsl.html#templates
https://github.com/Kotlin/kotlinx.html
https://bettercoding.dev/kotlin/ktor-rest-api-exposed/
https://dev.to/kotlin/publishing-server-side-kotlin-applications-ktor-on-heroku-2ce4
https://dev.to/kotlinautas/criando-uma-api-com-ktor-8le
https://ishroid.medium.com/ktor-database-connection-with-h2-ktor-and-exposed-100e4d3dc2e2
how add postgresql db in heroku https://devcenter.heroku.com/articles/connecting-to-relational-databases-on-heroku-with-java
how connect to pgadmin https://stackoverflow.com/questions/11769860/connect-to-a-heroku-database-with-pgadmin
exposed info https://www.baeldung.com/kotlin/exposed-persistence
more about exposed https://blog.jdriven.com/2019/07/kotlin-exposed-a-lightweight-sql-library/