With this template, you are ste to deploy your application to Heroku

Overview

Template for deployment

With this template, you are ste to deploy your application to Heroku. I´m using a Spring backend, React JS Frontend with MongoDB database.

Try it out

- What you need:

- What to do:

  • Clone this Repo and connect it with a new Repo of yours(you can delete the .git Folder and make a new git init).

  • Install or sign up to Heroku and MongoDB using the Links above.

  • MongoDB Atlas:

    • create a Cluster for your App (check the pricing, there is a free tier)
    • After you created it, use the connect button => connect your application => java/current version => copy the connection string
  • Let´s head to Heroku:

    • Create an App for your application
    • Head to settings and reveal Config Vars
    • Add the Key URI and as Value paste in your connetion string (replace user and password with your values)
    • Since we are already on Heroku, we need some kind of authentication for GitHub, in this case an API-Key. We can generate our API-Key in Heroku by clicking the User-icon (top-right) => Account settings => scroll down untill you see API-Key
    • Either generate or copy your API-Key.
  • Github:

    • We have save this API-Key in our Repo, to Login to Heroku.
    • Go to your Repo => Settings => Secrets => New Repository Secret
    • Save your API-Key as HEROKU_API_KEY, save, and now GitHub and Heroku can communicate.

- What to change:

  • pom.xml:

    • change the finalName to your Appname.
    • You can change the groupId if you like.
  • Github Action:

    • All points of change are marked inside th action.
  • Dockerfile:

    • Please change the Maintainer :D
    • The .jar name should be changed to the same name, as in the pom.xml under 'finalName' (at three places, you´ll manage to do it!)
  • You can remove all Packages in the backend, they are just an example for the DB connection.

- Problems

  • If you encounter any problems using this template, please let me know by stating an issue on GitHub.
You might also like...

This project archetype is a template for creating a fully functional MVC web application using Hibernate, JSTL and Bootstrap

This project archetype is a template for creating a fully functional MVC web application using Hibernate, JSTL and Bootstrap

This project archetype is a template for creating a fully functional MVC web application using Hibernate, JSTL and Bootstrap. It has an automatic database creation, auto initial load of the data, with different variety of users. It also has a checkstyle to check the proper coding of your project immediately right after you enter the code.

Oct 21, 2022

Bank Statement Analyzer Application that currently runs in terminal with the commands: javac Application.java java Application [file-name].csv GUI coming soon...

Bank Statement Analyzer Application that currently runs in terminal with the commands: javac Application.java java Application [file-name].csv GUI coming soon...

May 21, 2022

tuya-spring-boot-starter helps you efficiently create cloud development projects regarding the OpenAPI or message subscription capabilities. You can put all the focus on business logic without taking care of server-side programming nor relational databases.

English | 中文版 tuya-spring-boot-starter helps you efficiently create cloud development projects regarding the OpenAPI or message subscription capabilit

Dec 26, 2022

COMPortNotifier - Smol utility to send you a notification every time you connect, or disconnect a COM port.

COMPortNotifier - Smol utility to send you a notification every time you connect, or disconnect a COM port.

COMPortNotifier A smol utility that sends you a notification every time a COM port is connected, or disconnected on your computer. Useful for electric

Sep 7, 2022

A Java agent that disables platform features you don't use, before an attacker uses them against you.

aegis4j Avoid the NEXT Log4Shell vulnerability! The Java platform has accrued a number of features over the years. Some of these features are no longe

Jan 11, 2022

Shows Image you select on Top of every Window by holding the button you choose

ImageOnTop What it does? Shows Image you select on Top of every Window by holding the button you choose. How to use it? Press a keyboard key you want

Jan 23, 2022

An app which will never give you up and never let you down

rickroll-android-edition An app which will never give you up and never let you down How to install On your phone, Turn on Install apps from unknown so

Feb 3, 2022

A Pomodoro Timer that allows you to collect Pokemon as you work.

Pomodoro: The Pokémon Collecting Game! A fun take on the Pomodoro Technique So, what does this application do? This application utilizes the famous Po

Jan 29, 2022

A custom minimap that displays resources all around you while you adventure through Aeternum!

A custom minimap that displays resources all around you while you adventure through Aeternum!

New-World-MiniMap A custom minimap that displays resources all around you while you adventure through Aeternum! Download Download Page Minimap.rar Oth

Dec 9, 2021
Super simple deploy using spring boot, docker, k8s and kind

Target Target of this repository is show how to build spring boot application Docker image and deploy it with kind and k8s at least in local. Prerequi

Max 4 Aug 22, 2021
Boilerplate code for hello world java score and deploy it on testnet.

Java SCORE Examples This repository contains template of a java SCORE and instructions on how to deploy a simple java score. How to Run 1. Build the p

null 1 Feb 1, 2022
JHipster Lite ⚡ is a development platform to generate, develop & deploy modern web applications & microservice architectures, step by step.

JHipster Lite ⚡ Description JHipster is a development platform to quickly generate, develop & deploy modern web applications & microservice architectu

JHipster 255 Jan 3, 2023
Deploy this 🔥🔥🔥 BLAZING FAST 🔥🔥🔥 API to get instant access to ✨✨✨ INNOVATIVE ✨✨✨ API to quickly define whether the numbers are odd or even.

Is Odd API This ?? is ?? ?? a ?? simple API that ?? returns ?? whether ?? ?? a ?? number ?? ?? is ?? ?? odd ?? or ?? not. ♂ With ?? ?? this ?? ?? API

rferee 5 Sep 23, 2022
A minecraft minigame where you have to defend your bed and destroy the others. Once your bed is destroyed, you cannot respawn.

As from November 1st 2021 BedWars1058 by Andrei Dascălu becomes open source under GNU GPL 3.0 license. If you are a developer I would really appreciat

Andrei Dascălu 182 Dec 26, 2022
A boilerplate project designed to work as a template for new microservices and help you get in touch with various useful concepts.

Microservice Reference Project This project is inspired by the idea to quickly create a production ready project with all the required infrastructure

Innovation & Tech 4 Dec 17, 2022
Facsimile - Copy Your Most Used Text to Clipboard Easily with Facsimile!. It Helps You to Store You Most Used Text as a Key, Value Pair and Copy it to Clipboard with a Shortcut.

Facsimile An exact copy of Your Information ! Report Bug · Request Feature Table of Contents About The Project Built With Getting Started Installation

Sri lakshmi kanthan P 1 Sep 12, 2022
Template to speed up your development in React Native projects.

React Native SpaceShip I created this template with the purpose of leaving the development environment already configured for use. ?? How to use it in

Lucas Augusto 3 Mar 23, 2022
Create your Java crypto trading bot in minutes. Our Spring boot starter takes care of exchange connections, accounts, orders, trades, and positions so you can focus on building your strategies.

Quick Start | Documentation | Discord | Twitter Create and run your java crypto trading bot in minutes Our Spring boot starter takes care of exchange

Cassandre 442 Jan 3, 2023
DM Movie is an app with several movies catalogued through a database, you enter your email and your rating of the movie

DM Movie is an app with several movies catalogued through a database, you enter your email and your rating of the movie

Davi M. G. de Almeida 5 Jan 28, 2022