Skip to content

Commit

Permalink
Merge pull request #12 from blogify-dev/dev
Browse files Browse the repository at this point in the history
Merge dev into master for PRX2
  • Loading branch information
Benjozork authored Sep 20, 2019
2 parents d3b5d7a + 8e4cf55 commit d270516
Show file tree
Hide file tree
Showing 151 changed files with 3,003 additions and 1,331 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
*.iws
/gradlew.bat
/gradlew
/resources/frontend/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All-in-one blogging engine powered by Ktor and Angular.

Blogify uses `Ktor` on the backend and `Angular` on the frontend.

It uses `PostgreSQL` as a databse.
It uses `PostgreSQL` as a database.

## Performance

Expand All @@ -16,7 +16,7 @@ Currently, our own (very basic) testing shows that the server can handle upwards

## Building and deploying

The default deploy configuration runs the backend and the databse as `docker-compose` services. A functioning, local, test deployment can be achieved by running the `localTestDeploy` gradle task.
The default deploy configuration runs the backend and the database as `docker-compose` services. A functioning, local, test deployment can be achieved by running the `localTestDeploy` gradle task.

## Core team

Expand All @@ -38,7 +38,7 @@ The default deploy configuration runs the backend and the databse as `docker-com

This project is in a very early, pre-alpha stage.

Any versions indicated in the startup message starting with `PRX` are not safe to use, not tested and are not guranteed to retain data safely.
Any versions indicated in the startup message starting with `PRX` are not safe to use, not tested and are not guaranteed to retain data safely.

## Contributing

Expand Down
19 changes: 18 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ application {
repositories {
mavenLocal()
jcenter()
maven { url = uri("https://dl.bintray.com/kittinunf/maven") }
maven { url = uri("https://kotlin.bintray.com/ktor") }
}

Expand Down Expand Up @@ -62,6 +63,12 @@ dependencies {
// Kolor

compile("com.andreapivetta.kolor:kolor:0.0.2")

// Result

compile("com.github.kittinunf.result:result:2.2.0")
compile("com.github.kittinunf.result:result-coroutines:2.2.0")

}

kotlin.sourceSets["main"].kotlin.srcDirs("src")
Expand Down Expand Up @@ -93,7 +100,17 @@ dockerCompose {
stopContainers = true
}

tasks.register("buildAngularProd", Exec::class) {
workingDir = File("src/blogify/frontend")
commandLine = listOf("npm", "run", "build")
}

// blogifyDeploy : this builds angular app, packs the jar and runs the docker-compose config
tasks.register("blogifyDeploy", GradleBuild::class) {
tasks = mutableListOf("buildAngularProd", "shadowJar", "composeUp")
}

// Local test deploy : this packs the jar and runs the docker-compose config
tasks.register("localTestDeploy", GradleBuild::class) {
tasks = mutableListOf("shadowJar", "composeUp")
}
}
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ ktor {
port = ${?PORT}
}
application {
modules = [blgoify.backend.ApplicationKt.mainModule]
modules = [blogify.backend.ApplicationKt.mainModule]
}
}
2 changes: 1 addition & 1 deletion resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{12} - %msg%n</pattern>
</encoder>
</appender>
<root level="trace">
Expand Down
90 changes: 0 additions & 90 deletions src/blgoify/backend/database/Tables.kt

This file was deleted.

24 changes: 0 additions & 24 deletions src/blgoify/backend/resources/User.kt

This file was deleted.

108 changes: 0 additions & 108 deletions src/blgoify/backend/routes/AuthRoutes.kt

This file was deleted.

41 changes: 0 additions & 41 deletions src/blgoify/backend/routes/UserRoutes.kt

This file was deleted.

Loading

0 comments on commit d270516

Please sign in to comment.