Kikiodazie / myFirstSpringBootApp

A hotel reservation springboot app i used in learning the basics of spring with springboot with a remote postgres database on docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MyFirstSpringBootApp

This is a basic hotel reservation by date website.

Getting Started

Clone this repo to your local machine How To Guide

Prerequisites

Installing

Install all project dependencies with:

$ mvn install

###How to run Firstly run the remote progress database container with docker in /bin

  • Docker installed
  • Psql installed for the postgres database
  • Open the start_postgres.sh and run the bash file.

then.

####Maven Open a terminal and run the following commands to ensure that you have valid versions of Java and Maven installed:

$ java -version

$ mvn -v

You should get the versions of Java and Maven.

#####Using the Maven Plugin The Spring Boot Maven plugin includes a run goal that can be used to quickly compile and run your application. Applications run in an exploded form, as they do in your IDE. The following example shows a typical Maven command to run a Spring Boot application:

$ mvn spring-boot:run

#####Using Executable Jar To create an executable jar run:

$ mvn clean package

Running the tests

Tests can be run by executing following command from the root of the project:

$ mvn test

The test should pass.

Built With

About

A hotel reservation springboot app i used in learning the basics of spring with springboot with a remote postgres database on docker


Languages

Language:Java 72.1%Language:HTML 21.6%Language:JavaScript 4.4%Language:Shell 1.7%Language:CSS 0.3%