https://github.com/janrockdev/defihq-api
https://github.com/janrockdev/defihq-api
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/janrockdev/defihq-api
- Owner: janrockdev
- Created: 2023-03-09T17:52:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-09T17:52:31.000Z (over 3 years ago)
- Last Synced: 2025-01-24T19:35:00.669Z (over 1 year ago)
- Language: Java
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DefihqApi
This app was created with Bootify.io - tips on working with the code [can be found here](https://bootify.io/next-steps/). Feel free to contact us for further questions.
## Development
During development it is recommended to use the profile `local`. In IntelliJ, `-Dspring.profiles.active=local` can be added in the VM options of the Run Configuration after enabling this property in "Modify options".
Update your local database connection in `application.yml` or create your own `application-local.yml` file to override settings for development.
Lombok must be supported by your IDE. For this, in IntelliJ install the Lombok plugin and enable annotation processing - [learn more](https://bootify.io/next-steps/spring-boot-with-lombok.html).
After starting the application it is accessible under `localhost:8080`.
## Build
The application can be built using the following command:
```
mvnw clean package
```
The application can then be started with the following command - here with the profile `production`:
```
java -Dspring.profiles.active=production -jar ./target/defihq-api-0.0.1-SNAPSHOT.jar
```
## Further readings
* [Maven docs](https://maven.apache.org/guides/index.html)
* [Spring Boot reference](https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/)
* [Spring Data MongoDB reference](https://docs.spring.io/spring-data/mongodb/docs/current/reference/html/)