added basic manifesto

This commit is contained in:
Chris Zhu
2024-10-20 11:03:56 -07:00
parent 3551a040c2
commit 0619b63fbb
10 changed files with 62 additions and 13 deletions

View File

@@ -91,3 +91,5 @@ gem "rack", "~> 2.2"
gem "tailwindcss-rails", "~> 2.7"
gem "httparty", "~> 0.22.0"
gem "redcarpet", "~> 3.6"

View File

@@ -385,6 +385,7 @@ GEM
rdoc (6.7.0)
psych (>= 4.0.0)
recursive-open-struct (1.1.3)
redcarpet (3.6.0)
redis (4.8.1)
regexp_parser (2.9.2)
reline (0.5.10)
@@ -547,6 +548,7 @@ DEPENDENCIES
pundit (~> 2.1)
rack (~> 2.2)
rails (~> 7.2.1)
redcarpet (~> 3.6)
redis (~> 4.8)
responders!
rqrcode (~> 2.2)

View File

@@ -3,9 +3,7 @@
- [ ] Onboarding flow
- [ ] we should have a feature to continuously poll stuff and figure out if they are still alive
- [ ] Healthchecks and whatnot
- [ ] Finish the landing page
- [ ] Write the manifesto
- [ ] show last healthcheck
- [ ] allow public network access flag is not currently doing anything
* Make it show which git SHA is currently deployed on the homepage
* Or if there is currently a deploy happening

View File

@@ -16,4 +16,8 @@
.animate-click {
animation: click-animation 300ms ease-in-out;
}
.prose-lg th {
@apply text-left;
}

View File

@@ -1,6 +1,13 @@
class StaticController < ApplicationController
MANIFESTO_FILE = Rails.root.join("public", "manifesto.md")
skip_before_action :authenticate_user!
def index
end
def manifesto
@content = File.read(MANIFESTO_FILE)
renderer = Redcarpet::Render::HTML.new
@markdown = Redcarpet::Markdown.new(renderer, tables: true)
end
end

View File

@@ -1,11 +0,0 @@
<div class="container mx-auto mt-8">
<div class="prose-lg container mx-auto">
<h1>Why do we exist?</h1>
In a previous start up, I saw first hand how the cost of hosting a web app could explode over time.
<br />
What was weird was that costs grew with organizational complexity, not compute complexity, and often in area's I never expected.
<br />
As it turns out, the cost you pay to host <b>your app</b> is only a fraction of the total IT spend.
<br />
</div>
</div>

View File

@@ -20,6 +20,9 @@
<p class="mt-6 text-lg leading-8 text-gray-300">Canine is a Kubernetes platform that makes it easy to deploy and manage your applications.</p>
<div class="mt-10 flex items-center gap-x-6">
<%= link_to "Get started", new_user_registration_path, class: "rounded-md bg-indigo-500 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-400" %>
<%= link_to manifesto_path, class: "text-sm font-semibold leading-6 text-white" do %>
Our manifesto <span aria-hidden="true">→</span>
<% end %>
</div>
</div>
<div class="mx-auto mt-16 flex max-w-2xl sm:mt-24 lg:ml-10 lg:mr-0 lg:mt-0 lg:max-w-none lg:flex-none xl:ml-32">

View File

@@ -0,0 +1,5 @@
<div class="container mx-auto mt-24">
<div class="prose-lg container mx-auto">
<%= @markdown.render(@content).html_safe %>
</div>
</div>

View File

@@ -7,6 +7,7 @@ Rails.application.routes.draw do
end
get "/privacy", to: "static#privacy"
get "/terms", to: "static#terms"
get "/manifesto", to: "static#manifesto"
authenticated :user do
root to: "projects#index", as: :user_root

38
public/manifesto.md Normal file
View File

@@ -0,0 +1,38 @@
# Why does Canine exist?
As a cofounder of a previous start up, I saw first hand how the cost of hosting a web app could explode over time.
What I found weird was that costs grew with organizational complexity, not compute complexity, and often in area's I never expected.
As it turns out, the cost you pay to host <b>your app</b> is only a fraction of the total IT spend.
I'll walk through the history of our IT spend and see how it grew over time.
### At Launch
| Service | Spend (monthly) |
| -------- | ------- |
| Heroku | $100 |
| Google Maps | $50 |
| Sentry | FREE |
| Looker | $1000 |
| Redshift | $800 |
| FiveTran | $600 |
| **TOTAL** | **$2950** |
Interesting to note, the cost of hosting our app (Heroku) was a tiny portion of our IT spend.
By year 1, we had grown our team (40+), and added a few more tools to our tech stack.
### Year 1
| Service | Spend (monthly) |
| -------- | ------- |
| Heroku | $1000 |
| AWS | $1000 |
| Google Maps | $500 |
| Sentry | $300 |
| Looker | $5000 |
| DBT Cloud | $1000 |
| Databricks | $5000 |
| Redshift | $1500 |
| FiveTran | $2000 |
| **TOTAL** | **$16800** |