This file contains 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: v1 | |
kind: Service | |
metadata: | |
name: application-load-balancer-service | |
spec: | |
ports: | |
- name: application-load-balancer-service-port-name | |
port: 4200 | |
protocol: TCP | |
targetPort: 4200 |
This file contains 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: v1 | |
kind: Service | |
metadata: | |
name: application-load-balancer-service | |
spec: | |
ports: | |
- name: application-load-balancer-service-port-name | |
port: 4200 | |
protocol: TCP | |
targetPort: 4200 |
This file contains 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: v1 | |
kind: Service | |
metadata: | |
name: application-web-service | |
spec: | |
selector: | |
app: application-web-pod | |
ports: | |
- name: application-web-service-port-name | |
protocol: TCP |
This file contains 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: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: application-api-service | |
name: application-api-service | |
spec: | |
ports: | |
- name: application-api-service | |
port: 8080 |
This file contains 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: | |
labels: | |
app: application-api-deployment | |
name: application-api-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
This file contains 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: application-web-deployment | |
spec: | |
selector: | |
matchLabels: | |
app: application-web-pod | |
replicas: 1 | |
template: |
This file contains 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.3" | |
#Define services | |
services: | |
#MySql Database for application | |
mysql-db: | |
image: mysql | |
restart: always | |
container_name: mysql-db |
This file contains 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 React, {useState} from 'react' | |
import "./Modal.scss" | |
import {createQuote, updateQuote} from "../../services/Quote.service" | |
const Modal = (props) => { | |
const [key, setKey] = useState(props.updatedQuote.key) | |
const [quote, setQuote] = useState(props.updatedQuote.quote) | |
const [owner, setOwner] = useState(props.updatedQuote.owner) | |
const [reference, setReference] = useState(props.updatedQuote.reference) |
This file contains 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 React, { useState } from 'react'; | |
import axios from 'axios'; | |
//const API_URL_DEV = `http://localhost:8080` | |
const API_URL_CLOUD = `https://golang-web-app-back-end-d6kfnlic2a-uk.a.run.app` | |
async function listAllQuotes() { | |
return axios (`${API_URL_CLOUD}/api/quotes`) | |
} |
This file contains 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 golang:alpine | |
# Install git. | |
# Git is required for fetching the dependencies. | |
RUN apk update && apk add --no-cache git | |
RUN mkdir -p /go/src/github.com/emre/react-golang-web-app | |
# Install dep dependency management | |
RUN go get -u github.com/golang/dep/cmd/dep |
NewerOlder