Skip to content

RPL-Project-TelU/Codebreaker

Repository files navigation

Pacman

Game Pacman merupakan game yang melegenda. Semua orang pasti pernah mendengar apa itu game pacman. Pada kesempatan kali ini, kelompok Codebreaker akan mencoba untuk membuat game pacman di java.

API Reference

Get top 10 leaderboard score

  GET /api/getLeaderboard

Post new submission

  POST /api/submit
Parameter Type Description
name string Lenght must be 3. Name of the new score submission
score int The score that want to be submited

Delete a submission

  POST /api/delete/{id}
Parameter Type Description
id Long Reqired. The id of submission that want to be removed

FAQ

Kak, kok server saya error "Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured."?

Pastikan di pacman-server/src/main/resource sudah terdapat application.yaml yang berisi info database kalian.

Format isi application.yaml adalah sebagai berikut

spring:
    datasource:
        url: [url database]
        username: [username database]
        password: [password database]
        driver-class-name: [driver database]
    jpa:
        show-sql: true
        hibernate:
            ddl-auto: create-drop

silahkan mengganti url database, username database, password database, dan driver database sesuai dengan database yang kalian gunakan.

berikut adalah contoh pengisian application.yaml menggunakan database oracle

spring:
    datasource:
        url: jdbc:oracle:thin:@localhost:1521:ORCL
        username: admin
        password: admin
        driver-class-name: oracle.jdbc.OracleDriver
    jpa:
        show-sql: true
        hibernate:
            ddl-auto: create-drop

Authors

Kelompok Codebreaker

Acknowledgements

About

Kelompok Code Breaker Se-44-03

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

Languages