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
#include <iostream> | |
using namespace std; | |
// width and height of the board | |
const int width = 7, height = 6; | |
//pieces | |
const char EMPTY = '_', X = 'X', O = 'O'; | |
//board is represented with a 2-dimensional char array | |
char board[height][width]; |
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
#include <iostream> | |
using namespace std; | |
const int width = 7, height = 6; | |
const char EMPTY = '_', X = 'X', O = 'O'; | |
char board[height][width]; | |
void setup(){ | |
for (int i = 0; i < height; i++) { | |
for (int j = 0; j < width; j++) { | |
board[i][j] = EMPTY; |
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
#include <iostream> | |
using namespace std; | |
const int width = 7, height = 6; | |
const char EMPTY = '_', X = 'X', O = 'O'; | |
char board[height][width]; | |
void setup(){ | |
for (int i = 0; i < height; i++) { | |
for (int j = 0; j < width; j++) { | |
board[i][j] = EMPTY; |
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
EXPOSE 8080 | |
ENV API_ENV "docker" | |
CMD ["/app/cxp-toolkit"] |
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
EXPOSE 8080 | |
ENV API_ENV "docker" | |
CMD ["/app/cxp-toolkit"] |
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
# building frontend | |
FROM node:alpine | |
COPY ./frontend /frontend | |
WORKDIR /frontend | |
RUN npm install | |
RUN npm run build | |
# building api | |
FROM golang:alpine |
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
# building frontend | |
FROM node:alpine | |
COPY ./frontend /frontend | |
WORKDIR /frontend | |
RUN npm install | |
RUN npm run build | |
# building api | |
FROM golang:alpine |
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
pipeline { | |
agent any | |
stages { | |
stage('Checkout Source'){ | |
steps { | |
checkout scm | |
} | |
} | |
stage('Deploy') { | |
agent any |
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:alpine | |
COPY ./frontend /frontend | |
WORKDIR /frontend | |
RUN npm install | |
RUN npm run build | |
FROM golang:alpine | |
ENV GO111MODULE on | |
RUN apk add --no-cache git |
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:latest | |
COPY ./frontend /frontend | |
WORKDIR /frontend | |
RUN npm install | |
RUN npm run build | |
FROM golang:alpine | |
ENV GO111MODULE on | |
RUN apk add --no-cache git |