Skip to content

Commit

Permalink
Prepare Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
garlontas committed May 2, 2022
1 parent 791304e commit efa2c90
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,29 @@
# jheroku-keep-alive
# JHeroku-keep-alive
This minimalistic java library brings a powerful annotation to your Java Spring Boot application and prevents your app from sleeping on the free Heroku plan!

## Where do I get this library
To use this library in your Web Application use it from our GitHub packages:
https://github.com/orgs/PickwickSoft/packages

## Usage
JHeroku-keep-alive provides the following annotation `@HerokuKeepAlive`

Use this annotation like that:

```java
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.pickwicksoft.jherokukeepalive.HerokuKeepAlive;

@HerokuKeepAlive
@SpringBootApplication
public class WebApp {

public static void main(String[] args) {
SpringApplication.run(WebApp.class, args);
}
}
```

## How does it work?
The annotation adds a spring service to your application that starts a GET request to [https//:localhost:8080](https//:localhost:8080) every five minutes wich prevents the Heroku machine from shutting down.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>org.pickwicksoft</groupId>
<artifactId>jheroku-keep-alive</artifactId>
<version>0.0.1</version>
<version>1.0.0</version>
<name>jheroku-keep-alive</name>
<description>An annotation for spring boot to prevent your app running on heroku from hibernating</description>
<packaging>jar</packaging>
Expand Down

0 comments on commit efa2c90

Please sign in to comment.