Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All changes #9

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

tasks:
- name: aws-cli
env:
AWS_CLI_AUTO_PROMPT: on-partial
init: |
cd /workspace
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
cd $THEIA_WORKSPACE_ROOT
vscode:
extensions:
- 42Crunch.vscode-openapi
- 42Crunch.vscode-openapi
18 changes: 18 additions & 0 deletions backend-flask/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM python:3.10-slim-buster


#WORKDIR /backend-flask

COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt

COPY . .
#set Environemt Variables
#Inside Container and will remain set when the container is running
ENV FLASK_ENV=development

EXPOSE ${PORT}

#CMD
# python3 -m flask run --host=0.0.0.0 --port=4567
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0", "--port=4567"]
26 changes: 26 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: "3.8"
services:
backend-flask:
environment:
FRONTEND_URL: "https://3000-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}"
BACKEND_URL: "https://4567-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}"
build: ./backend-flask
ports:
- "4567:4567"
volumes:
- ./backend-flask:/backend-flask
frontend-react-js:
environment:
REACT_APP_BACKEND_URL: "https://4567-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}"
build: ./frontend-react-js
ports:
- "3000:3000"
volumes:
- ./frontend-react-js:/frontend-react-js

# the name flag is a hack to change the default prepend folder
# name when outputting the image names
networks:
internal-network:
driver: bridge
name: cruddur
9 changes: 9 additions & 0 deletions frontend-react-js/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:16.18

ENV PORT=3000

COPY . /frontend-react-js
WORKDIR /frontend-react-js
RUN npm install
EXPOSE ${PORT}
CMD ["npm", "start"]
1 change: 1 addition & 0 deletions journal/Assests/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added journal/Assests/chrome_0e9Q9fmItM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_26iueyYNyF.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_2d6c7xXy4x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_BlKAcxlpFM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_DF217u0rU0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_Rnw0BW8cbk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_VGzeSdFBBR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_XQv5G2XQNJ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_a6E3oG7NiT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_be24L768yt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_gBcTOVrHM0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_gHwvZh638d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_gzjVNYd8V1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_pf7tdojMDL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added journal/Assests/chrome_yZJ7s4oMbU.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion journal/week0.md
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
# Week 0 — Billing and Architecture
# Week 0 — Billing and Architecture
## I saw all videos was amazing.
I completed all process just the two stpes was regarding to Budget and Alaram Budget.
I go some errors during the process I will share it with you may you have some soultions for that. I should mention I did these process with Windows Cli but both of the was the same.

Lucid chart :
https://lucid.app/lucidchart/e14943f7-1ff4-42bd-a320-413887b2f0e1/edit?viewport_loc=-947%2C-837%2C4039%2C1940%2C0_0&invitationId=inv_3bdc919c-7fc4-4b14-956c-29dff8f9b7bb



I fixed the issue :))


14 changes: 13 additions & 1 deletion journal/week1.md
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
# Week 1 — App Containerization
# Week 1 — App Containerization
Add docker file
It is a recep if I want to install docker also in Local host
add Docker extension
Install Docker file and install Flask module in addition and port changed to public status
Server is running but Error 404
I created docker image = Backend flask.
I am confused honestly ????
but I will investigate further to find out what is the reason to change the commant to

Yeah I made it amazing
but still I am confused
At the end Docker-compose.yml cretaed an run it.