-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ui component #4
base: master
Are you sure you want to change the base?
Conversation
Cool. Could you please ensure your project stucture conform existing in repository? |
I'm so sorry. I'll fix it. Thanks) |
Thank you Valentine for your comments, i've fixed corresponding |
path("home") { | ||
get { | ||
respondWithMediaType(MediaTypes.`text/html`) { | ||
val homePage = Source.fromURL(this.getClass.getResource("/index.html")).mkString |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you serve all your static data through api module?
api and client should be independent applications. You can also have multiple different clients that work with the same api.
I would recommend to serve it using some http server like nginx instead.
# Conflicts: # README.md # api/build.sbt # api/src/main/scala/scalalab3/lyricsengine/Boot.scala
# Conflicts: # README.md # api/build.sbt # api/src/main/scala/scalalab3/lyricsengine/Boot.scala
Move client files around
} ~ | ||
pathPrefix("js") { | ||
get { | ||
getFromResourceDirectory("js") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сервинг статики хорошо бы отделить от бизнес-логики. В идеале скала вообще не должна её сёрвить, это лучше поручить какому nginx-у. Ну или хотя бы отделить в отдельный роут.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, извините, это уже пофиксано. ui component отдельный модуль ни от чего не зависящий
# Conflicts: # README.md # api/build.sbt # api/src/main/scala/scalalab3/lyricsengine/Boot.scala
@@ -0,0 +1,39 @@ | |||
package scalalab3.lyricsengine.model.lda |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR is no longer "Add UI component" :)
No description provided.