Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Goal
[Provide a clear the goal of PR]

## Changes
- [List the key changes or modifications made in the code.]
- [Highlight any significant refactoring or architectural decisions.]

## Testing
[Provide clear instructions on how to test the changes locally.]

### Checklist:
- [ ] Clear title and description
- [ ] Documentation/README updated if needed
- [ ] No secrets or large temporary files
32 changes: 32 additions & 0 deletions .github/workflows/lab3-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lab 3 CI Pipeline

on:
push:
workflow_dispatch:

jobs:
explore-github-actions:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run a one-line script
run: echo "Hello, World! This job is running on a ${{ runner.os }} server powered by GitHub Actions!"

- name: Debug Information
run: |
echo "This job is running on: ${{ runner.os }}"
echo "The GitHub Actor who triggered it is: ${{ github.actor }}"
echo "The GitHub SHA of the commit is: ${{ github.sha }}"

- name: Gather System Information
run: |
echo "--- OS Information ---"
uname -a
echo "--- CPU Information ---"
lscpu
echo "--- Memory Information ---"
free -h
echo "--- Disk Usage ---"
df -h
Binary file added labs/image-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added labs/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 105 additions & 0 deletions labs/lab11/app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Decentralized Web Lab | IPFS Hosting</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Exo+2:wght@300;400;600&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<header class="header">
<div class="glow-effect"></div>
<h1 class="title">🌐 Decentralized Web Explorer</h1>
<p class="subtitle">Hosted on IPFS via 4EVERLAND</p>
</header>

<main class="main-content">
<section class="info-card">
<h2>🚀 Lab 11 Mission Accomplished!</h2>
<div class="status-grid">
<div class="status-item">
<span class="status-label">Network:</span>
<span class="status-value active">IPFS Live</span>
</div>
<div class="status-item">
<span class="status-label">Content ID:</span>
<span class="status-value cid">Waiting for CID...</span>
</div>
<div class="status-item">
<span class="status-label">Gateway:</span>
<span class="status-value">4EVERLAND</span>
</div>
</div>
</section>

<section class="features">
<h3>✨ Why This Matters:</h3>
<div class="feature-list">
<div class="feature">
<span class="feature-icon">🔗</span>
<span class="feature-text">Censorship Resistance</span>
</div>
<div class="feature">
<span class="feature-icon">🌍</span>
<span class="feature-text">Global Distribution</span>
</div>
<div class="feature">
<span class="feature-icon">💾</span>
<span class="feature-text">Content Persistence</span>
</div>
<div class="feature">
<span class="feature-icon">⚡</span>
<span class="feature-text">No Single Point of Failure</span>
</div>
</div>
</section>

<section class="tech-specs">
<h3>🛠️ Technical Stack:</h3>
<div class="tech-grid">
<div class="tech-item">
<strong>Protocol:</strong> IPFS (InterPlanetary File System)
</div>
<div class="tech-item">
<strong>Platform:</strong> 4EVERLAND
</div>
<div class="tech-item">
<strong>Content:</strong> Static HTML/CSS
</div>
<div class="tech-item">
<strong>Addressing:</strong> CID-based
</div>
</div>
</section>

<section class="live-demo">
<h3>🔍 Real-time Verification:</h3>
<p>This same content is accessible through multiple gateways:</p>
<div class="gateway-links">
<div class="gateway">• 4EVERLAND App</div>
<div class="gateway">• IPFS Public Gateway</div>
<div class="gateway">• Cloudflare IPFS</div>
</div>
</section>
</main>

<footer class="footer">
<p>Built for Blockchain Course Lab 11 | Decentralized Web Hosting</p>
<p class="timestamp" id="currentTime"></p>
</footer>
</div>

<script>
// Update timestamp
document.getElementById('currentTime').textContent =
'Deployed: ' + new Date().toLocaleString();

// Simulate CID detection
setTimeout(() => {
document.querySelector('.cid').textContent = 'Qm... (Generated by 4EVERLAND)';
}, 1000);
</script>
</body>
</html>
Loading