This application shows backlog issues as board.
You can use it on Heroku.
This works on JDK 1.8.
- launch server
- for Linux:
./gradlew bootrun -PactiveProfile=default
- for Windows:
gradlew bootrun -PactiveProfile=default
- for Linux:
If you want to create another environment, copy application-default.properties.sample
to application-your_env.properties
, and execute ./gradlew bootrun -PactiveProfile=your_env
- all test
./gradlew test
- one test
./gradlew test --tests "*TestClass"
./gradlew test --tests "com.package.name.dir.TestClass"
- Lang class must inherit
Lang
. - Use
Long
, notInt
, as much as you can. - Please prevent use
else
block when you useif
statement. - follow idea standard
1 + 2 * 3 / 4
if (...) {
}
while (...) {
}
var v: V
val w: W
- Use
start
andend
to represent interval- Good:
startDate
,endTime
- Bad:
beginDate
- Good:
- Use
from
andto
to represent search condition - make variable and method camel case naming
- abbreviation must not be composed only of capital letters.
Url
,Ufo
- Every method and variables have to be in Camel Case format.
- Add
List
,Array
,Set
,Map
to its variables. Don't use plural form for representing collections- Good:
festivalList: List<Festival>
- Bad:
festivals: List<Festival>
- Good:
- Begin method signature with verb
- Don't write text directly, except for English. Use Lang class.
- Finish its name with
Controller
- Add this line to every controller
companion object State: RedirectAttributesHandler()
- Finish its name with
View
- Every view must be object
- The last parameter of every method showing html must be RedirectAttributes
- Use
Pager
class
-
library =>
public/lib
- ex) if you want to use Foundation library, create foundation directory under
public/lib
and extract it there.
- ex) if you want to use Foundation library, create foundation directory under
-
css file =>
public/css
-
javascript file =>
public/js
-
static file must be served from web server application with cache system (under construction)
- for crud
- GET / => index
- POST / => create
- GET /{id} => show (and edit)
- GET /{id}/edit => edit
- PATCH /{id} => update
- DELETE /{id} => delete