mirror of
https://github.com/czhu12/canine.git
synced 2025-12-21 10:49:49 -06:00
added basic manifesto
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -91,3 +91,5 @@ gem "rack", "~> 2.2"
|
||||
gem "tailwindcss-rails", "~> 2.7"
|
||||
|
||||
gem "httparty", "~> 0.22.0"
|
||||
|
||||
gem "redcarpet", "~> 3.6"
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -16,4 +16,8 @@
|
||||
|
||||
.animate-click {
|
||||
animation: click-animation 300ms ease-in-out;
|
||||
}
|
||||
|
||||
.prose-lg th {
|
||||
@apply text-left;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
@@ -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">
|
||||
|
||||
5
app/views/static/manifesto.html.erb
Normal file
5
app/views/static/manifesto.html.erb
Normal 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>
|
||||
@@ -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
38
public/manifesto.md
Normal 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** |
|
||||
Reference in New Issue
Block a user