more information : http://hacktoberfest-mataram.herokuapp.com/
Dalam repository ini anda di challenge untuk membuat sebuah website dengan menggunakan Kotlin. Framework yang digunakan pada repository ini yakni: ktor.
Sebelum memulai, silahkan beri Bintang.
- Fork Project
- Clone ke lokal komputer anda
- Buka project dengan IntelliJ IDEA
- Buka direktory
src/contributors
- Tambahkan class baru (WAJIB KOTLIN), format penamaan:
NamaAnda
, atauNamaAnda123
, dst. - Implement
Contributor
interface di class tersebut. - Isi kontent. Lihat contoh pada file
HayiNukman.kt
jangan lupa buat companion objectinitialize
untuk memidahkan linking class dengan helper.
companion object {
fun initialize(map: MutableMap<String, Contributor>) {
map["ha-yi"] = HayiNukman()
map["hayinukman"] = HayiNukman()
map["hayi"] = HayiNukman()
}
}
CATATAN:
- saat mapping, gunakan unique id, bisa id github anda, atau email address.
- jangan ganti ID orang lain yang sudah ada. first come first serve. Bagi yang mengoverride nama orang lain, maka tidak akan di merge (PR ditolak).
- Setelah class dibuat, buka file
ContributorHelper.kt
- Tambahkan inisialisasi class contributor anda ke sini dalam blok ini di class ContributorHelper. Contohnya:
init {
contributors.apply {
HayiNukman.initialize(this)
Abdullah.initialize(this)
RobiHuzwandar.initialize(this)
}
}
- Test.
- Commit perubahan, kemudian lakukan pull request.
-
Linux / Mac
- Buka terminal dan masuk ke path projek ini
- Jalankan perintah
./gradlew run
- Akses
http://localhost:8080
di browser mu - Untuk lebih mudah, jalankan printah
./gradlew -t build
di terminal yang lain untuk mengaktifkanautobuild
dan selamatkan waktumu
-
Windows
- Buka CMD dan masuk ke directory project ini.
- jalankan perintah
gradlew.bat run
dari dalam folder project - akses
http://localhost:8080
melalui web browser
-
IntelliJ IDEA
- Buka Tab gradle yang ada pada panel sebelah kanan
- kemudian Pilih
Tasks
>application
>run
===========================================
In this Repository you are challenged to make a Website using Kotlin. Framework used in this repository is ktor.
Before start contributing, please give star to this repo.
- Fork the Project
- Clone or Download to your local storage
- Open the project using IntelliJ IDEA
- Open directory
src/contributors
- Added new class (MUST BE KOTLIN), format name :
YourName
, orName123
etc. - Implement
Contributor
interface in your class. - Content value. see an example on file
HayiNukman.kt
, dont forget to create companion objectinitialize
to move linking class with helper.
companion object {
fun initialize(map: MutableMap<String, Contributor>) {
map["ha-yi"] = HayiNukman()
map["hayinukman"] = HayiNukman()
map["hayi"] = HayiNukman()
}
}
- when mapping, use unique id, you can use your github id or your email address.
- don't change other people's IDs that already exist. first come first serve. for those who override the name another person, it will not be merged(Pull Request Rejected)
- after the class created, open file
ContributorHelper.kt
- add your initialization class contribution into the block of the class ContributorHelper. e.g. :
init {
contributors.apply {
HayiNukman.initialize(this)
Abdullah.initialize(this)
RobiHuzwandar.initialize(this)
}
}
- Testing
- Commit your changes, then do pull request
-
Linux / Mac
- Open your terminal and enter into this project path
- run command
./gradlew run
- Access
http://localhost:8080
on your browser - For better, run
./gradlew -t build
command in another terminal to activateautobuild
and save your time
-
Windows
- open CMD and navigate to root directory project.
- run command
gradlew.bat run
- open
http://localhost:8080
from any web browser
-
IntelliJ IDEA
- open
gradle
Tab on the right panel of IDE - then choose
Tasks
>application
>run
- open