HUB
Sign inSign up

atingupta2005/todo-web-application-h2

By atingupta2005

•Updated over 6 years ago

Image
0

1.1K

atingupta2005/todo-web-application-h2 repository overview

⁠Todo Web Application using Spring Boot and H2 In memory database

Run com.in28minutes.springboot.web.SpringBootFirstWebApplication as a Java Application.

Runs on default port of Spring Boot - 8080

⁠Can be run as a Jar or a WAR

mvn clean install generate a war which can deployed to your favorite web server.

We will deploy to Docker as a WAR

⁠Web Application

  • http://localhost:8080/login⁠ with in28minutes/dummy as credentials
  • You can add, delete and update your todos
  • Spring Security is used to secure the application
  • com.in28minutes.springboot.web.security.SecurityConfiguration contains the in memory security credential configuration.

⁠H2 Console

⁠Plugins

⁠Dockerfile Maven
	<plugin>
		<groupId>com.spotify</groupId>
		<artifactId>dockerfile-maven-plugin</artifactId>
		<version>1.4.6</version>
		<executions>
			<execution>
				<id>default</id>
				<goals>
					<goal>build</goal>
				</goals>
			</execution>
		</executions>
		<configuration>
			<repository>atingupta2005/${project.name}</repository>
			<tag>${project.version}</tag>
			<skipDockerInfo>true</skipDockerInfo>
		</configuration>
	</plugin>
⁠JIB
<plugin>
	<groupId>com.google.cloud.tools</groupId>
	<artifactId>jib-maven-plugin</artifactId>
	<version>1.6.1</version>
	<configuration>
		<from>
			<image>tomcat:8.5-jre8-alpine</image>
		</from>
		<container>
			<appRoot>/usr/local/tomcat/webapps/my-webapp</appRoot>
			<creationTime>USE_CURRENT_TIMESTAMP</creationTime>
		</container>
	</configuration>
	<executions>
		<execution>
			<phase>package</phase>
			<goals>
				<goal>dockerBuild</goal>
			</goals>
		</execution>
	</executions>
</plugin>
Tag summary
Recent tags
Content type
Image
Digest
Size
103.4 MB
Last updated
over 6 years ago
docker pull atingupta2005/todo-web-application-h2:latest