forked from AmintaCCCP/GithubStarsManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-docker.html
More file actions
28 lines (26 loc) · 1013 Bytes
/
test-docker.html
File metadata and controls
28 lines (26 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title>GitHub Stars Manager Docker Test</title>
</head>
<body>
<h1>GitHub Stars Manager Docker Test</h1>
<p>This is a simple test page to verify the Docker deployment.</p>
<h2>Test Results:</h2>
<div id="results"></div>
<script>
// This script tests that the app is accessible
fetch('http://localhost:8080')
.then(response => {
if (response.ok) {
document.getElementById('results').innerHTML = '<p style="color: green;">✓ Application is accessible</p>';
} else {
document.getElementById('results').innerHTML = '<p style="color: red;">✗ Application is not accessible</p>';
}
})
.catch(error => {
document.getElementById('results').innerHTML = '<p style="color: orange;">⚠️ Test cannot be completed from this context: ' + error.message + '</p>';
});
</script>
</body>
</html>