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

London 10 -- Kristina Dudnyk -- Fullstack Project Assignment -- DataBases -- 300 #380

Closed
wants to merge 95 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
0df26d3
level 100
KristinaDudnyk Aug 27, 2023
c8be230
+
KristinaDudnyk Aug 27, 2023
c9d32bf
+
KristinaDudnyk Aug 27, 2023
2c5d9af
+
KristinaDudnyk Aug 27, 2023
2cd8b6f
+
KristinaDudnyk Sep 6, 2023
fe43bfb
SetRating
KristinaDudnyk Sep 11, 2023
a021471
...
KristinaDudnyk Sep 20, 2023
1f8fbea
.
KristinaDudnyk Sep 20, 2023
95f19f6
...
KristinaDudnyk Sep 20, 2023
e286975
...
KristinaDudnyk Sep 20, 2023
78b44c3
...
KristinaDudnyk Sep 20, 2023
19b1c3a
...
KristinaDudnyk Sep 20, 2023
d92bd76
...
KristinaDudnyk Sep 20, 2023
4f54aa4
...
KristinaDudnyk Sep 20, 2023
d05ac84
Installing new caniuse-lite version
KristinaDudnyk Sep 21, 2023
07a07ef
Changed layout of NewVideo component. Corected composition of compone…
KristinaDudnyk Sep 26, 2023
434af6f
Changing borders and sizes of elements
KristinaDudnyk Sep 27, 2023
784182d
corecting the width of header
KristinaDudnyk Sep 27, 2023
731041a
corecting a width
KristinaDudnyk Sep 27, 2023
a5f075f
+
KristinaDudnyk Sep 27, 2023
d63d06e
+
KristinaDudnyk Sep 27, 2023
d50fc22
+
KristinaDudnyk Sep 27, 2023
4f83077
+
KristinaDudnyk Sep 27, 2023
86f1920
adding or statement so loading of the frontEnd will not fail
KristinaDudnyk Jan 23, 2024
dc7aaa2
update of database
KristinaDudnyk Feb 11, 2024
9e5432d
+
KristinaDudnyk Feb 26, 2024
4e40aa2
removing useEffect from App.js
KristinaDudnyk Feb 26, 2024
ded696a
+
KristinaDudnyk Feb 28, 2024
91a6847
+
KristinaDudnyk Feb 28, 2024
5326111
testing githubworkflows
KristinaDudnyk Mar 1, 2024
6db121e
+
KristinaDudnyk Mar 1, 2024
58ba5fa
+
KristinaDudnyk Mar 1, 2024
467ce6c
+
KristinaDudnyk Mar 1, 2024
2403b42
+
KristinaDudnyk Mar 1, 2024
0624970
+
KristinaDudnyk Mar 1, 2024
f93c641
+++
KristinaDudnyk Mar 1, 2024
ec3295d
updatingV
KristinaDudnyk Mar 1, 2024
6cfa867
-
KristinaDudnyk Mar 1, 2024
4dc499a
-
KristinaDudnyk Mar 1, 2024
e94cc32
Create npm-publish-github-packages.yml
KristinaDudnyk Mar 1, 2024
31b7091
configuring
KristinaDudnyk Mar 1, 2024
9949e1e
c
KristinaDudnyk Mar 1, 2024
48a9dc6
0
KristinaDudnyk Mar 1, 2024
7554a64
configuring workflow for front-end
KristinaDudnyk Mar 1, 2024
b6c6d3e
correcting region
KristinaDudnyk Mar 1, 2024
5641bd1
correcting region02
KristinaDudnyk Mar 1, 2024
3269616
add config file, swap backend links to config variable
KristinaDudnyk Mar 1, 2024
881860a
configured workflow for backEnd
KristinaDudnyk Mar 1, 2024
e670fb8
configured workflow for backEnd02
KristinaDudnyk Mar 1, 2024
88fb584
change region for ec2
KristinaDudnyk Mar 2, 2024
9389761
change region for ec2 02
KristinaDudnyk Mar 2, 2024
9c9dd4d
change region for ec2 03
KristinaDudnyk Mar 2, 2024
130e200
change region for ec2 04
KristinaDudnyk Mar 2, 2024
cf2a597
change region for ec2 05
KristinaDudnyk Mar 2, 2024
0a414b6
change region for ec2 07
KristinaDudnyk Mar 2, 2024
34e4f6b
change region for ec2 08
KristinaDudnyk Mar 2, 2024
5576e31
change region for ec2 09
KristinaDudnyk Mar 2, 2024
ddb41ff
added &&
KristinaDudnyk Mar 2, 2024
706218d
just login
KristinaDudnyk Mar 2, 2024
60c9d6b
10
KristinaDudnyk Mar 2, 2024
da9fa70
11
KristinaDudnyk Mar 2, 2024
2af2956
12
KristinaDudnyk Mar 2, 2024
f5e80b4
swap to variables
KristinaDudnyk Mar 2, 2024
ac1eaf9
swap to variables to vars
KristinaDudnyk Mar 2, 2024
9ebb0df
888
KristinaDudnyk Mar 2, 2024
e7aadb4
887
KristinaDudnyk Mar 2, 2024
c9a4314
.
KristinaDudnyk Mar 2, 2024
5b68cd2
cleaning code
KristinaDudnyk Mar 2, 2024
1dad0c9
cleaning code02
KristinaDudnyk Mar 2, 2024
f90d90a
ADDING cho /home/kristina/.nvm/versions/node/v20.9.0/bin:/home/kristi…
KristinaDudnyk Mar 2, 2024
fe76394
finding npm
KristinaDudnyk Mar 2, 2024
deee6c8
finding npm02
KristinaDudnyk Mar 2, 2024
00538ce
changing pool env vars
KristinaDudnyk Mar 5, 2024
07b6a90
Merge branch 'main' of https://github.com/KristinaDudnyk/Full-Stack-P…
KristinaDudnyk Mar 5, 2024
35a5d56
+
KristinaDudnyk Mar 5, 2024
7810074
swap a backend link to brand new ec2 link
KristinaDudnyk Mar 6, 2024
aad524d
update a script for backend workflow
KristinaDudnyk Mar 6, 2024
8db8b69
export path
KristinaDudnyk Mar 6, 2024
944a0b9
change export to set
KristinaDudnyk Mar 6, 2024
85de17f
+
KristinaDudnyk Mar 6, 2024
bba590e
+
KristinaDudnyk Mar 6, 2024
aa77743
+
KristinaDudnyk Mar 6, 2024
cfd8a5b
+
KristinaDudnyk Mar 6, 2024
af42922
+
KristinaDudnyk Mar 6, 2024
2e38c95
+
KristinaDudnyk Mar 6, 2024
c298681
+
KristinaDudnyk Mar 6, 2024
d54db76
+
KristinaDudnyk Mar 6, 2024
2a17d59
+
KristinaDudnyk Mar 6, 2024
aefb9f1
+
KristinaDudnyk Mar 6, 2024
7db0f04
+
KristinaDudnyk Mar 6, 2024
382e83a
+
KristinaDudnyk Mar 6, 2024
042af95
+
KristinaDudnyk Mar 6, 2024
1f4fcbb
+
KristinaDudnyk Mar 6, 2024
ebee575
+
KristinaDudnyk Mar 6, 2024
52f7155
+
KristinaDudnyk Mar 6, 2024
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
40 changes: 40 additions & 0 deletions .github/workflows/backEnd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploying to EC2

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository//download the source code repository
uses: actions/checkout@v3

- name: Create private key file and change permissions to read-only
run: |
echo "${{secrets.AWS_PEM}}" > myPlayList-key-pair.pem
chmod 400 myPlayList-key-pair.pem

- name: Install dependencies and build
# multi-line bash script inside single quotes ' ' can't read indentation for the if block etc.
# <<- denotes a HERE Document which can accept a multi-line correctly indented/formatted script
run: |
ssh -i myPlayList-key-pair.pem -o StrictHostKeyChecking=no ${{vars.AWS_HOST_NAME}}@${{vars.AWS_HOST}} <<-'SSH_SCRIPT'
export PATH="$PATH:/home/ubuntu/.nvm/versions/node/v20.11.1/bin" &&
export SERVER_PORT=${{vars.SERVER_PORT }} &&
export DB_URL=${{secrets.DB_URL}} &&
cd Full-Stack-Project-Assessment/server &&
git pull &&
if pm2 list | grep -q fullstackproject; then
echo "fullstack project process found" &&
echo "stopping the process" &&
pm2 stop fullstackproject &&
echo "deleting the process" &&
pm2 delete fullstackproject
fi
echo "starting the process" &&
pm2 start server.js --name fullstackproject
SSH_SCRIPT
31 changes: 0 additions & 31 deletions .github/workflows/check-diff-size.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/frontEnd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploying to S3

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository//download the source code repository
uses: actions/checkout@v2

- name: Configure AWS credentials// AWS credentials are configuring
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-north-1

- name: Use Node.js 16
uses: actions/setup-node@v4
with:
node-version: 16

- name: Install dependencies and build
run: |
cd client
npm ci
npm run build

- name: Sync to S3
run: aws s3 sync client/build s3://videos-recomendation-project --delete
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/client/node_modules
/server/node_modules
.DS_Store
thumbs.db
*.swp
*.swo
*.sublime*
.vscode
.env
2 changes: 2 additions & 0 deletions client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/d
### `yarn build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

0000
13 changes: 13 additions & 0 deletions client/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"files": {
"main.css": "/static/css/main.335e28bb.css",
"main.js": "/static/js/main.2726dd1b.js",
"index.html": "/index.html",
"main.335e28bb.css.map": "/static/css/main.335e28bb.css.map",
"main.2726dd1b.js.map": "/static/js/main.2726dd1b.js.map"
},
"entrypoints": [
"static/css/main.335e28bb.css",
"static/js/main.2726dd1b.js"
]
}
KristinaDudnyk marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions client/build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/><link href="https://fonts.googleapis.com/css2?family=Nabla&display=swap" rel="stylesheet"/><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"/><link rel="manifest" href="/manifest.json"/><title>Fullstack Project Assessment</title><script defer="defer" src="/static/js/main.2726dd1b.js"></script><link href="/static/css/main.335e28bb.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
8 changes: 8 additions & 0 deletions client/build/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"short_name": "To Do App",
"name": "To Do App",
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions client/build/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
2 changes: 2 additions & 0 deletions client/build/static/css/main.335e28bb.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/build/static/css/main.335e28bb.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions client/build/static/js/main.2726dd1b.js

Large diffs are not rendered by default.

Loading