https://github.com/xmlking/key-chain
A simple Blockchain for creating and distributing access keys
https://github.com/xmlking/key-chain
blockchain jwt kotlin
Last synced: 10 months ago
JSON representation
A simple Blockchain for creating and distributing access keys
- Host: GitHub
- URL: https://github.com/xmlking/key-chain
- Owner: xmlking
- Created: 2018-04-18T18:19:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T18:19:40.000Z (over 7 years ago)
- Last Synced: 2025-01-30T05:43:21.444Z (12 months ago)
- Topics: blockchain, jwt, kotlin
- Language: Kotlin
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Key-chain
=========
A simple `Blockchain` for creating and distributing `access keys` securely
## Running
To run this application, simply execute:
```shell
gradlew run
```
## Public API
After running the application, the public instance is available at http://localhost:7000
As for now, it offers the following endpoints:
* `GET /blocks` for listing all existing blocks in the chain
* `POST /blocks/mine` for mining new block
### Gradle Commands
```bash
# upgrade project gradle version
gradle wrapper --gradle-version 4.7 --distribution-type all
# gradle daemon status
gradle --status
gradle --stop
# show dependencies
gradle word-count:dependencies
# refresh dependencies
gradle build -x test --refresh-dependencies
```
## Credit
This project uses some open source libraries:
* [Apache Commons Codec](https://github.com/apache/commons-codec)
* [JavaLin](https://javalin.io/)
* [Jackson Module Kotlin](https://github.com/FasterXML/jackson-module-kotlin)