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
namespace WeatherWalkingSkeleton.Config | |
{ | |
public class OpenWeather | |
{ | |
public string ApiKey { get; set; } | |
} | |
} |
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
using System; | |
using System.Net; | |
namespace WeatherWalkingSkeleton.Infrastructure | |
{ | |
public class OpenWeatherException : Exception | |
{ | |
public HttpStatusCode StatusCode { get; } | |
public OpenWeatherException() { } |
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
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. | |
# See Also: https://docker-curriculum.com/#sf-food-trucks | |
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base | |
WORKDIR /app | |
EXPOSE 80 | |
EXPOSE 443 | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build | |
WORKDIR /src | |
COPY ["AspNetCoreConfigExample.csproj", ""] |
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
version: "3" | |
services: | |
mongodb: | |
container_name: mean_urls_db | |
image: mongo:latest | |
volumes: | |
- ./scripts/mongo/init/:/docker-entrypoint-initdb.d | |
- ./scripts/mongo/init:/home/mongodb | |
- ./scripts/mongo/seed/:/home/mongodb/seed | |
- mean_urls_data:/data/db |
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
import { Component, ContentChild, Directive, Input, OnInit, TemplateRef } from '@angular/core'; | |
// parent component where the list is rendered and where we can decide where which conditional field will be rendered | |
@Component({ | |
selector: 'app-root', | |
template: ` | |
<h2>Here's where the chips come in yo</h2> | |
<div *ngFor="let c of config"> | |
<app-chip [hasConditionalField]="c.hasConditionalField"> | |
<ng-template appConditionalField> |
OlderNewer