Build a Secure Notes Application with Kotlin, TypeScript, and Okta

Build a Secure Notes Application with Kotlin, TypeScript, and Okta

I love my job as a developer advocate at Okta. I get to learn a lot, write interesting blog posts and create example apps with cool technologies like Kotlin, TypeScript, Spring Boot, and Angular, which I’m about to demo. When it comes to writing Hello World apps with authentication, I can whip one out in a few minutes. That isn't because I'm a particularly good programmer, it's because the languages, frameworks, tools, and platforms available to developers are impressive.

[…]

Click Generate Project and expand the zip file after downloading. If you don’t have IntelliJ IDEA installed, now’s a good time to try it out. It’s a great IDE for Java, Kotlin, Groovy, TypeScript, JavaScript, HTML, and Sass/CSS. One of its killer features is the ability to copy/paste Java code into a Kotlin class and have it auto-converted to Kotlin on-the-fly!

[…]

Start by creating a new Note entity in src/main/kotlin/com/okta/developer/notes/NotesApplication.kt.

[…]

This example shows constructor injection, but Kotlin also supports field injection with @Autowired.

[…]

I hope you’ve enjoyed this quick tour of Kotlin and saw how its concise syntax can be a lot of fun. In May 2017, Kotlin was announced as an officially supported language on Android, giving the language quite a bit of attention. You can learn more about Kotlin on kotlinlang.org.

[…]

Replace the HTML in client/src/app/note-list/note-list.component.html with a few lines to render the notes list.

[…]

In the same directory, update login.component.html to have a div for the sign-in widget to render in.

Modify client/src/app/app.component.html to show the user’s name and add a for rendering all the routes.

[…]