Spring is widely used as JAVA based application framework. It is reliable and lightweight. It is perfect not only for large application but also for our weekend project. Sometimes we need to take our apps live. Unlike node very few free hosting is available for spring. Among them Heroku is most popular.
I like to share one more free hosting option for your spring project. Glitch is providing their free service and we are happy to have a service like this. Many node and frontend developer using their free forever hosting services. Since they support maven I searched for spring project. I failed to found any so I tried to configure one.
Method 1 :
Step 1:
Create your spring project with Spring Initializr or any other tools you prefer
Step 2:
Create a file called glitch.json in your root folder
{
"start": " java -jar target/*.jar",
"install": "echo 'compiling' && mvn package",
"watch": {
"throttle": 500,
"install": {
"include": [
"^pom\\.xml$",
"\\.java$"
]
}
}
}
Step 3:
Upload the project to GitHub and import the project to glitch using git URL. Directly upload the project using glitch file upload is also possible.
Method 2 :
For quick start you can use the remix button / fork button below and customize as you need.
In case you liked this article, you can give a Heart. I would love to hear any feedback and review from you. Please tell me what you liked in the comment section below. Happy Learning!✨
Top comments (0)