A typical setup:
app_dir/
manage.py
application.py
module_dir/
views.py
| 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> |
| 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 |
| #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", ""] |
| using System; | |
| using System.Net; | |
| namespace WeatherWalkingSkeleton.Infrastructure | |
| { | |
| public class OpenWeatherException : Exception | |
| { | |
| public HttpStatusCode StatusCode { get; } | |
| public OpenWeatherException() { } |
| namespace WeatherWalkingSkeleton.Config | |
| { | |
| public class OpenWeather | |
| { | |
| public string ApiKey { get; set; } | |
| } | |
| } |
| # bash | |
| $ dotnet new webapi -o WeatherWalkingSkeleton |
| # bash | |
| $ echo 'export const apiKey = "<YOUR OPEN WEATHER MAP API KEY>";' >> javascripts/apiKey.js |
public.key, private.key). Generate them here.npm install --save-dev jsonwebtokens json-server fakerusers.json with at least email and password for a fake user.api): "api-noAuth": "node_modules/.bin/json-server api/seed.js",
"api-auth": "node ./api/server.js",
"api-seed": "node ./api/seed.js > api/db.json"npm run api-seed will create db.json, npm run api-noAuth is just the api npm run api-auth will create and require tokens.| # GENERAL | |
| alias c='clear' | |
| alias ca='clear &&' | |
| alias la='ls -la' | |
| # GIT ALIASES | |
| alias g='git' | |
| alias gs='git status' | |
| alias ga='git add' |