Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vs4vijay/dragon
A Microservice in Java and Spring
https://github.com/vs4vijay/dragon
api java jpa microservice restful-api spring
Last synced: 5 days ago
JSON representation
A Microservice in Java and Spring
- Host: GitHub
- URL: https://github.com/vs4vijay/dragon
- Owner: vs4vijay
- License: mit
- Created: 2020-08-23T16:55:56.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-24T15:57:00.000Z (24 days ago)
- Last Synced: 2024-10-25T21:54:49.192Z (23 days ago)
- Topics: api, java, jpa, microservice, restful-api, spring
- Language: Java
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dragon
## Installation
```shell
mvn install
```## Running
```shell
# For Maven based project
mvn spring-boot:run# For Gradle based project
gradle bootRun
```- Application is running on: http://localhost:8888/dragons
- H2 Console is running on: http://localhost:8888/h2-console---
## Packaging
```shell
mvn clean install# *.jar file will be in ./target folder
# java -jar dragon-*.jar
```---
### Development Notes
```shell
curl localhost:8888/dragons
curl -H 'Content-Type: application/json' -d '{"name": "vijay", "power": "fire"}' localhost:8888/dragons
export MAVEN_OPTS=-Xmx1024m
@RepositoryRestResource(path = "students", collectionResourceRel = "students")
spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=password
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect# Change H2 Storage
spring.datasource.url=jdbc:h2:file:/data/demo```