Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .prototools
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby = "3.3.5"
22 changes: 22 additions & 0 deletions .solargraph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
include:
- "**/*.rb"
exclude:
- spec/**/*
- test/**/*
- vendor/**/*
- ".bundle/**/*"
require: []
domains: []
reporters:
- rubocop
- require_not_found
formatter:
rubocop:
cops: safe
except: []
only: []
extra_args: []
require_paths: []
plugins: []
max_files: 5000
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"markdown.validate.enabled": true,
"solargraph.commandPath": "./bin/solargraph"
}
42 changes: 42 additions & 0 deletions 12factor FINAL/binserve.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"server": {
"host": "127.0.0.1:1337",
"tls": {
"host": "127.0.0.1:443",
"enable": false,
"key": "key.pem",
"cert": "cert.pem"
}
},
"routes": {
"/": "public/index.html",
"/usage": "public/usage.hbs"
},
"static": {
"directory": ".",
"served_from": ".",
"error_pages": {
"404": "public/404.html"
}
},
"template": {
"partials": {
"header": "public/header.hbs"
},
"variables": {
"app_name": "Binserve"
}
},
"config": {
"enable_hot_reload": true,
"fast_mem_cache": true,
"enable_cache_control": true,
"enable_directory_listing": true,
"minify_html": false,
"follow_symlinks": false,
"enable_logging": false
},
"insert_headers": {
"x-greetings": "hellooo!"
}
}
638 changes: 638 additions & 0 deletions 12factor FINAL/blog-detail-page.html

Large diffs are not rendered by default.

848 changes: 848 additions & 0 deletions 12factor FINAL/blog-landing-page.html

Large diffs are not rendered by default.

736 changes: 736 additions & 0 deletions 12factor FINAL/blurb-blocks.html

Large diffs are not rendered by default.

896 changes: 896 additions & 0 deletions 12factor FINAL/column-blocks.html

Large diffs are not rendered by default.

742 changes: 742 additions & 0 deletions 12factor FINAL/community-page.html

Large diffs are not rendered by default.

499 changes: 499 additions & 0 deletions 12factor FINAL/content-styles-page.html

Large diffs are not rendered by default.

552 changes: 552 additions & 0 deletions 12factor FINAL/hero-blocks.html

Large diffs are not rendered by default.

770 changes: 770 additions & 0 deletions 12factor FINAL/home-page.html

Large diffs are not rendered by default.

556 changes: 556 additions & 0 deletions 12factor FINAL/image-text-blocks.html

Large diffs are not rendered by default.

518 changes: 518 additions & 0 deletions 12factor FINAL/interior-factor-page.html

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions 12factor FINAL/public/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--
+----------------------------+
| Auto-generated by binserve |
+----------------------------+
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 Page Not Found</title>
<link rel="stylesheet" href="{{load_static}}/css/styles.css">
</head>
<body>
<div class="contents">
<h1>404 Page Not Found</h1>
<hr>
<p><em>binserve v0.2.0</em></p>
</div>
</body>
</html>
61 changes: 61 additions & 0 deletions 12factor FINAL/public/assets/css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
body {
background-color: #3c3252;
color: white;
text-align: center;
font-family: 'Courier New', Courier, monospace;
}

h1 {
text-shadow: 0 0 1px white;
}

hr {
width: 30%;
}

.logo {
height: 150px;
width: 150px;
}

.gif {
height: 400px;
width: 500px;
}

details {
cursor: pointer;
}

p {
font-family: monospace;
font-size: 16px;
}

button {
padding: 20px;
font-size: 20px;
font-weight: bold;
border: solid;
border-width: 0px;
border-radius: 5px;
cursor: pointer;
}

code {
padding: 5px;
background-color: gray;
border: solid;
border-width: 1px;
border-radius: 5px;
}

.contents {
margin-top: 69px;
}

.usage {
margin-top: 69px;
display: inline-block;
text-align: left;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions 12factor FINAL/public/header.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ app_name }} v0.2.0 Usage</title>
<link rel="stylesheet" href="assets/css/styles.css">
</head>
34 changes: 34 additions & 0 deletions 12factor FINAL/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!--
+----------------------------+
| Auto-generated by binserve |
+----------------------------+
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Binserve v0.2.0</title>
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body>
<div class="contents">
<img class="logo" src="assets/images/binserve.webp" alt="binserve logo">
<h1>Hello, Universe! 🚀</h1>
<p>Your new web server is up and ready!</p>
<br>
<details>
<summary><strong>Get Started</strong></summary>
<p>Looks like everything's working perfectly! Hurray! 🎉</p>
<p>By default, binserve generates these static content as a boileplate for you to get started quickly.</p>
<p>The directory structure, configuration file, and these sample files utilize all the features.</p>
<p>This can help you learn the usage just by skimming through the generated static files.</p>
<h3>✨ Enjoy the breeze experience! ✨</h3>
<a href="/usage"><button>Usage</button></a>
</details>
<br>
<p><em><strong>binserve v0.2.0</strong></em></p>
</div>
</body>
</html>
35 changes: 35 additions & 0 deletions 12factor FINAL/public/usage.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
+----------------------------+
| Auto-generated by binserve |
+----------------------------+
-->
<html>
{{> header}}
<body>
<div class="usage">
<div style="text-align: center;">
<img class="logo" src="assets/images/binserve.webp" alt="binserve logo">
</div>
<h1>Usage</h1>
<h2><u>Command-line Arguments</u></h2>
<p>With these arguments you can override the settings in the <code>binserve.json</code> file.</p>
<br>
<ul>
<li><code>-c/--cert</code> - The path to the TLS certificate for your domain.</li>
<br>
<li><code>-k/--key</code> - The path to the TLS key for your domain.</li>
<br>
<li><code>-h/--host</code> - The host/domain with the specified port for your webserver to run on.</li>
<br>
<ul>
<li>Example: <code>--host 127.0.0.1:1337</code> OR <code>--host zombo.com</code></li>
</ul>
</ul>
<br><hr><br>
<div style="text-align: center;">
<h3>Also this page's <code>&lt;head&gt;</code> is rendered by Handlebars! 🎨</h3>
<p><em><strong>binserve v0.2.0</strong></em></p>
</div>
</div>
</body>
</html>
Loading