https://github.com/rizkimufrizal/starter-project
https://github.com/rizkimufrizal/starter-project
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rizkimufrizal/starter-project
- Owner: RizkiMufrizal
- License: apache-2.0
- Created: 2017-08-20T12:08:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-17T03:37:48.000Z (over 7 years ago)
- Last Synced: 2025-01-08T02:13:30.985Z (5 months ago)
- Language: Kotlin
- Size: 171 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Starter-Project
## Development Stack Back End :
* Hikaricp
* Spring Data JPA
* Spring Boot
* Spring HATEOAS
* Spring OAuth2
* Spring JWT (Asymmetric Key)
* H2 Database
* Kotlin
* Gradle
* Tomcat## Cara Menjalankan Back End :
* Akses Folder Starter-BackEnd lalu jalankan perintah : `gradle clean bootRun`
* Untuk Mendapatkan Access Token, Silahkan jalankan perintah berikut :```
curl -X POST -vu clientid:secret http://localhost:8080/oauth/token -H "Accept: application/json" -d "client_id=clientid&grant_type=client_credentials"
```* Akses API dengan Access Token seperti berikut :
```
curl "http://127.0.0.1:8080/api/barangs" \
-H "Authorization: Bearer " \
-H "Content-Type: application/json"
```