This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:8 | |
| # Create app directory | |
| WORKDIR /usr/src/app | |
| # Install app dependencies | |
| # A wildcard is used to ensure both package.json AND package-lock.json are copied | |
| # where available (npm@5+) | |
| COPY package*.json ./ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: azure-vote-back | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: azure-vote-back | |
| template: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [dockerrepo] | |
| name=Docker Repository | |
| baseurl=https://yum.dockerproject.org/repo/main/centos/7/ | |
| enabled=1 | |
| gpgcheck=1 | |
| gpgkey=https://yum.dockerproject.org/gpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Configure the Microsoft Azure Provider | |
| provider "azurerm" { | |
| subscription_id = "" | |
| client_id = "" | |
| client_secret = "" | |
| tenant_id = "" | |
| } | |
| # Create a resource group if it doesn’t exist | |
| resource "azurerm_resource_group" "terraform_rg" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="row"> | |
| <div class="col"></div> | |
| <div class="col"> | |
| <h3> | |
| <i class="fa fa-edit"></i> Edit Post</h3> | |
| <div *ngIf="post"> | |
| <div class="form-group"> | |
| <label for="">Title</label> | |
| <input type="text" class="form-control" [(ngModel)]="post.title" /> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="row"> | |
| <div class="col"></div> | |
| <div class="col"> | |
| <div *ngIf="post"> | |
| <h4>{{ post.title }}</h4> | |
| <p>{{ post.body }}</p> | |
| <p> | |
| <a (click)="likePost(post.id)" class="btn btn-link"> | |
| <i class="fa fa-heart" style="color: #F44336;"></i> {{ likes }} people like this | |
| </a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="row"> | |
| <div class="col"></div> | |
| <div class="col"> | |
| <h3> | |
| <i class="fa fa-plus-circle"></i> Add New Post</h3> | |
| <div class="form-group"> | |
| <label for="">Title</label> | |
| <input type="text" class="form-control" [(ngModel)]="postTitle" /> | |
| </div> | |
| <div class="form-group"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="row"> | |
| <div class="col"></div> | |
| <div class="col"> | |
| <h1>Kitten Network</h1> | |
| <img src="..." width="100%" class="img-responsive" /> | |
| <p style="margin-top: 10px;">...</p> | |
| <a routerLink="/posts" class="btn btn-success float-right"> | |
| <i class="fa fa-check-circle"></i> Get Started</a> | |
| </div> | |
| <div class="col"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="row"> | |
| <div class="col"></div> | |
| <div class="col"> | |
| <div class="card" *ngFor="let post of posts" style="margin-bottom: 20px;"> | |
| <div class="card-body"> | |
| <h5 class="card-title">{{ post.title }}</h5> | |
| <p class="card-text">{{ post.body }}</p> | |
| <a routerLink="/post/{{ post.id }}" class="btn btn-primary"><i class="fa fa-pencil-alt"></i> View | |
| Post</a> | |
| </div> |