adds phoenix boilerplate and database api
- message communication added - database migration added - initial commit
This commit is contained in:
		
							
								
								
									
										5
									
								
								lib/bump_web/templates/layout/app.html.heex
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								lib/bump_web/templates/layout/app.html.heex
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
<main class="container">
 | 
			
		||||
  <p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
 | 
			
		||||
  <p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p>
 | 
			
		||||
  <%= @inner_content %>
 | 
			
		||||
</main>
 | 
			
		||||
							
								
								
									
										11
									
								
								lib/bump_web/templates/layout/live.html.heex
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								lib/bump_web/templates/layout/live.html.heex
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
<main class="container">
 | 
			
		||||
  <p class="alert alert-info" role="alert"
 | 
			
		||||
    phx-click="lv:clear-flash"
 | 
			
		||||
    phx-value-key="info"><%= live_flash(@flash, :info) %></p>
 | 
			
		||||
 | 
			
		||||
  <p class="alert alert-danger" role="alert"
 | 
			
		||||
    phx-click="lv:clear-flash"
 | 
			
		||||
    phx-value-key="error"><%= live_flash(@flash, :error) %></p>
 | 
			
		||||
 | 
			
		||||
  <%= @inner_content %>
 | 
			
		||||
</main>
 | 
			
		||||
							
								
								
									
										30
									
								
								lib/bump_web/templates/layout/root.html.heex
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								lib/bump_web/templates/layout/root.html.heex
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
<!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"/>
 | 
			
		||||
    <%= csrf_meta_tag() %>
 | 
			
		||||
    <%= live_title_tag assigns[:page_title] || "Bump", suffix: " · Phoenix Framework" %>
 | 
			
		||||
    <link phx-track-static rel="stylesheet" href={Routes.static_path(@conn, "/assets/app.css")}/>
 | 
			
		||||
    <script defer phx-track-static type="text/javascript" src={Routes.static_path(@conn, "/assets/app.js")}></script>
 | 
			
		||||
  </head>
 | 
			
		||||
  <body>
 | 
			
		||||
    <header>
 | 
			
		||||
      <section class="container">
 | 
			
		||||
        <nav>
 | 
			
		||||
          <ul>
 | 
			
		||||
            <li><a href="https://hexdocs.pm/phoenix/overview.html">Get Started</a></li>
 | 
			
		||||
            <%= if function_exported?(Routes, :live_dashboard_path, 2) do %>
 | 
			
		||||
              <li><%= link "LiveDashboard", to: Routes.live_dashboard_path(@conn, :home) %></li>
 | 
			
		||||
            <% end %>
 | 
			
		||||
          </ul>
 | 
			
		||||
        </nav>
 | 
			
		||||
        <a href="https://phoenixframework.org/" class="phx-logo">
 | 
			
		||||
          <img src={Routes.static_path(@conn, "/images/phoenix.png")} alt="Phoenix Framework Logo"/>
 | 
			
		||||
        </a>
 | 
			
		||||
      </section>
 | 
			
		||||
    </header>
 | 
			
		||||
    <%= @inner_content %>
 | 
			
		||||
  </body>
 | 
			
		||||
</html>
 | 
			
		||||
							
								
								
									
										41
									
								
								lib/bump_web/templates/page/index.html.heex
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								lib/bump_web/templates/page/index.html.heex
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,41 @@
 | 
			
		||||
<section class="phx-hero">
 | 
			
		||||
  <h1><%= gettext "Welcome to %{name}!", name: "Phoenix" %></h1>
 | 
			
		||||
  <p>Peace of mind from prototype to production</p>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
<section class="row">
 | 
			
		||||
  <article class="column">
 | 
			
		||||
    <h2>Resources</h2>
 | 
			
		||||
    <ul>
 | 
			
		||||
      <li>
 | 
			
		||||
        <a href="https://hexdocs.pm/phoenix/overview.html">Guides & Docs</a>
 | 
			
		||||
      </li>
 | 
			
		||||
      <li>
 | 
			
		||||
        <a href="https://github.com/phoenixframework/phoenix">Source</a>
 | 
			
		||||
      </li>
 | 
			
		||||
      <li>
 | 
			
		||||
        <a href="https://github.com/phoenixframework/phoenix/blob/v1.6/CHANGELOG.md">v1.6 Changelog</a>
 | 
			
		||||
      </li>
 | 
			
		||||
    </ul>
 | 
			
		||||
  </article>
 | 
			
		||||
  <article class="column">
 | 
			
		||||
    <h2>Help</h2>
 | 
			
		||||
    <ul>
 | 
			
		||||
      <li>
 | 
			
		||||
        <a href="https://elixirforum.com/c/phoenix-forum">Forum</a>
 | 
			
		||||
      </li>
 | 
			
		||||
      <li>
 | 
			
		||||
        <a href="https://web.libera.chat/#elixir">#elixir on Libera Chat (IRC)</a>
 | 
			
		||||
      </li>
 | 
			
		||||
      <li>
 | 
			
		||||
        <a href="https://twitter.com/elixirphoenix">Twitter @elixirphoenix</a>
 | 
			
		||||
      </li>
 | 
			
		||||
      <li>
 | 
			
		||||
        <a href="https://elixir-slackin.herokuapp.com/">Elixir on Slack</a>
 | 
			
		||||
      </li>
 | 
			
		||||
      <li>
 | 
			
		||||
        <a href="https://discord.gg/elixir">Elixir on Discord</a>
 | 
			
		||||
      </li>
 | 
			
		||||
    </ul>
 | 
			
		||||
  </article>
 | 
			
		||||
</section>
 | 
			
		||||
		Reference in New Issue
	
	Block a user