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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ This is a repo for new users getting started with Docker.

You can try it out using the following command.

```docker compose up -d```
````docker compose up -d``

And open http://localhost:3000 in your browser.
6 changes: 6 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:root {
--p: #33e337;
--s: #439323;
--a: #373348;
--bdr: 2px dotted var(--s);
}
81 changes: 81 additions & 0 deletions app/views/home.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Multi Container App</title>
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous" />
<link rel="stylesheet" href="//stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="../globals.css" />
</head>
<body>
<div class="container m-5 p-2 rounded mx-auto bg-light shadow">

<!-- App title section -->
<div class="row m-1 p-4">
<div class="col">
<div class="p-1 h1 text-primary text-center mx-auto display-inline-block">
<u>Multi Container App</u>
</div>
</div>
</div>
<div class="row m-1 p-3">
<div class="col col-11 mx-auto">
<h2>Login</h2>
<form method="POST" action="/" autocomplete="off">
<div class="row m-1 p-3">
<div class="col col-11 mx-auto">
<div class="row bg-white rounded shadow-sm p-2 add-todo-wrapper align-items-center justify-content-center">
<div class="col">
<input class="form-control form-control-lg border-0 add-todo-input bg-transparent rounded" type="text" name="email" placeholder="Email...">
</div>
<div class="col-auto px-0 mx-0 mr-2">
<button type="submit" class="btn btn-primary">Add</button>
</div>
</div>
</div>
</div>
</form>
<hr>
<div class="row">
<div class="col-12">
<% if(Object.keys(tasks).length> 0) { %>
<ul class="nav flex-column">
<% tasks.forEach(todo=> { %>
<li class="nav-item">
<div class="d-flex justify-content-between py-1">
<div class="d-flex flex-row">
<div>
<%= todo.task %>
<p class="text-muted"><small>
<%= moment(todo.created_at).fromNow() %>
</small></p>
</div>
</div>
<a href="javascript:;" onclick="this.children[0].submit()"
class="text-danger">
<form method="POST" action="/todo/destroy">
<input type="hidden" name="_key" value="<%= todo._id %>" />
</form>
<i class="fa fa-trash-o"></i>
</a>
</div>
</li>
<% }) %>
</ul>
<% } else { %>
<div class="text-center"><strong>Add A new task.</strong></div>
<% }%>
</div>
</div>
</div>
</div>
</div>
</div>
</body>

</html>


4 changes: 2 additions & 2 deletions app/views/todos.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="row m-1 p-4">
<div class="col">
<div class="p-1 h1 text-primary text-center mx-auto display-inline-block">
<u>Todo App</u>
<u>The List</u>
</div>
</div>
</div>
Expand Down Expand Up @@ -66,7 +66,7 @@
<% }) %>
</ul>
<% } else { %>
<div class="text-center"><strong>Please add some task.</strong></div>
<div class="text-center"><strong>Add A new task.</strong></div>
<% }%>
</div>
</div>
Expand Down
48 changes: 48 additions & 0 deletions verify-Amazon-CodeCatalyst-space.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// AWS Accouunt
Verify Amazon CodeCatalyst space
Paste the verification token from Amazon CodeCatalyst to verify this AWS account. You can remove this AWS account at any time. Adding an AWS account is required in order to create a space in Amazon CodeCatalyst.
Verification token
Paste the verification token generated from the create space page in Amazon CodeCatalyst.

```9169941d-c138-4c22-885f-f32a09018dca```

Requested by
williamrobertson28@gmail.com
AWSRoleForCodeCatalystSupport role
This role allows you to create and view AWS Support cases in CodeCatalyst. Without the role you will not be able to receive technical support via the AWS Management Console for Amazon CodeCatalyst.

Add AWSRoleForCodeCatalystSupport

Role permissions and trust relationship
Role name
AWSRoleForCodeCatalystSupport
Permissions

{
"Version": "2012-10-17",
"Statement": [
{
"Allow": [
"support:DescribeAttachment",
"support:DescribeCaseAttributes",
"support:DescribeCases",
"support:DescribeCommunications",
"support:DescribeIssueTypes",
"support:DescribeServices",
"support:DescribeSeverityLevels",
"support:DescribeSupportLevel",
"support:SearchForCases",
"support:AddAttachmentsToSet",
"support:AddCommunicationToCase",
"support:CreateCase",
"support:InitiateCallForCase",
"support:InitiateChatForCase",
"support:PutCaseAttributes",
"support:RateCaseCommunication",
"support:ResolveCase"
],
"Resource": "*"
}
]
}
``