Skip to content

Commit

Permalink
Default page redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
mrin9 committed Oct 20, 2018
1 parent 7e605ec commit a54e952
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 27 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ PROJECT_FOLDER
- Build Frontend (optional step, requiered only if you make changes to fronend code )
- Build Backend

### Build Frontend (optional step)
#### To build frontend (optional step)
```bash
# run these commands from web-ui folder

Expand All @@ -74,7 +74,7 @@ yarn build

```

### Build Backend
#### To build backend
```bash
# run these commands from root folder where top-level pom.xml is present

Expand All @@ -88,9 +88,9 @@ java -jar ./web-api/target/modules/web-api-1.0.0.jar
##### Once the App is running
App Component | URLs
--- | ---
URL for API Docs | http:https://localhost:8080/api-docs/index.html
URL to Access H2 DB | http:https://localhost:8082
Access the web app | http:https://localhost:8080
URL for REST APIs | http:https://localhost:8080/api
URL for API Docs | http:https://localhost:8080/api-docs/index.html

## Backers
Help me to host this app on AWS or Google-Cloud, for everyone to checkout the app.
Expand Down
10 changes: 0 additions & 10 deletions web-api/src/main/webapp/index.html

This file was deleted.

15 changes: 2 additions & 13 deletions web-api/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ page import="java.text.*,java.util.*" %>
<html>
<head>
<title>index.jsp</title>
</head>

<% SimpleDateFormat sdf=new SimpleDateFormat("MM/dd/yyyy"); %>

<body>
<h1>Welcome to index.jsp - Today is <%= sdf.format(new Date()) %></h1>
</body>
</html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% response.sendRedirect("/ui/index.html"); %>
13 changes: 13 additions & 0 deletions web-api/src/main/webapp/sample_index.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ page import="java.text.*,java.util.*" %>
<html>
<head>
<title>index.jsp</title>
</head>

<% SimpleDateFormat sdf=new SimpleDateFormat("MM/dd/yyyy"); %>

<body>
<h1>Welcome to index.jsp - Today is <%= sdf.format(new Date()) %></h1>
</body>
</html>

0 comments on commit a54e952

Please sign in to comment.