Commit 5778e9b9 authored by David's avatar David
Browse files

Removed java application

It's a pure angular app now, calling APIs from mayanEDMS to do the
actual work.
parent 161e3295
app:
pgUser: homeedms
pgPass: homeedms
pgPort: 5432
pgDatabase: homeedms
pgHost: localhost
watchDirectory: /tmp/homeedms/watch
mediaDirectory: /tmp/homeedms/media
micronaut:
application:
name: HomeEDMS
router:
static-resources:
swagger:
paths: classpath:META-INF/swagger
mapping: /swagger/**
endpoints:
health:
enabled: true
sensitive: false
details-visible: ANONYMOUS
datasources:
default:
url: jdbc:postgresql://${app.pgHost}:${app.pgPort}/${app.pgDatabase}
username: ${app.pgUser}
password: ${app.pgPass}
driverClassName: org.postgresql.Driver
jpa:
default:
packages-to-scan:
- 'is.kow.homeedms.entity'
properties:
hibernate:
hbm2ddl:
auto: none
show_sql: true
flyway:
datasources:
default:
locations: classpath:db/migration
\ No newline at end of file
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>true</withJansi>
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%cyan(%d{HH:mm:ss.SSS}) %gray([%thread]) %highlight(%-5level) %magenta(%logger{36}) - %msg%n</pattern>
</encoder>
</appender>
<logger name="is.kow.homeedms" level="DEBUG"/>
<root level="info">
<appender-ref ref="STDOUT" />
</root>
</configuration>
package `is`.kow.homeedms
import assertk.assertThat
import assertk.assertions.isEqualTo
import io.micronaut.context.ApplicationContext
import io.micronaut.http.client.HttpClient
import io.micronaut.runtime.server.EmbeddedServer
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.specification.describe
object HelloControllerSpec : Spek({
describe("Hello Controller suite") {
var embeddedServer = ApplicationContext.run(EmbeddedServer::class.java)
var client = HttpClient.create(embeddedServer.url)
it("test /hello responds with Hello World") {
var rsp = client.toBlocking().retrieve("/hello")
assertThat(rsp).isEqualTo("Hello World!")
}
afterGroup {
client.close()
embeddedServer.close()
}
}
})
\ No newline at end of file
include(":frontend", ":homeedms") //, ":homeedms")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment