Skip to content

Instantly share code, notes, and snippets.

View 3logy's full-sized avatar

3logy 3logy

View GitHub Profile

Using an Access Token for the first time

Alternative read -> Creating a personal access token

Create an Access Token

In your GitHub account, go to Settings -> Developer settings -> Personal access tokens and select Generate New Token. Make a note of the token somewhere safe since this is the only chance you get to see it.

Add the token to your OSX Key Chain

@3logy
3logy / website.yaml
Created April 15, 2019 15:58
Micronaut Postgresql Tutorial
https://morioh.com/p/d5f4f782f82b/kotlin-microservices-with-micronaut-spring-cloud-and-jpa
@3logy
3logy / default.bash
Last active April 14, 2019 14:34
Default micronaut cli project scaffold
mn create-app --build maven --lang java com.mypackage.projectname --features jdbc-hikari,hibernate-jpa,postgres-reactive
@3logy
3logy / sql-micronaut.yaml
Created April 14, 2019 13:14
mySQL and micronaut
1. add to maven pom:
compile -> "io.micronaut.configuration:micronaut-hibernate-jpa"
compile -> "io.micronaut.configuration:micronaut-jdbc-hikari"
runtime -> "com.h2database:h2"
@3logy
3logy / micronaut.pom
Last active April 14, 2019 13:07
Lombok and Micronaut
1. insert lombok into maven with scope compile
2. If you are using Java or Kotlin and IntelliJ IDEA make sure you have enabled annotation processing.
3. add lombok into annotation processor path before micronaut
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.0</version>
</path>
<path>
@3logy
3logy / directory-sample
Last active April 14, 2019 15:09
Directory Sample
src/
main/
docker/
java/
{root_package}/
aop/
logging/
config/
domain/
factory/