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

London10_Olha-Danylevska_Full-Stack-Project #334

Closed
wants to merge 212 commits into from
Closed
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
212 commits
Select commit Hold shift + click to select a range
abfa32e
added cards with videos
OlhaDanylevska Aug 2, 2023
e319fa7
added form for input
OlhaDanylevska Aug 2, 2023
41d0d43
Remove node_modules
OlhaDanylevska Aug 2, 2023
c359ef7
sorting video by rating
OlhaDanylevska Aug 2, 2023
64d6900
added Counter + 100 done
OlhaDanylevska Aug 2, 2023
57a11bc
1
OlhaDanylevska Aug 3, 2023
aa7fcf5
level 200 done
OlhaDanylevska Aug 4, 2023
6186933
level 250
OlhaDanylevska Aug 7, 2023
ac72d27
added gitignore
OlhaDanylevska Sep 11, 2023
8b62c56
deleted node_modules file from server folder
OlhaDanylevska Sep 11, 2023
9483eee
Delete .gitignore
OlhaDanylevska Sep 11, 2023
6de9dfb
created DB
OlhaDanylevska Sep 11, 2023
963a492
installed module pg
OlhaDanylevska Sep 11, 2023
1ea4300
test
OlhaDanylevska Sep 11, 2023
3ff934c
Update server.js
OlhaDanylevska Sep 11, 2023
993acc4
Update server.js
OlhaDanylevska Sep 11, 2023
ff6ef83
added some query to end points
OlhaDanylevska Sep 12, 2023
6302182
added .env file
OlhaDanylevska Sep 13, 2023
1d42f15
added port
OlhaDanylevska Sep 13, 2023
9095365
moved .env
OlhaDanylevska Sep 13, 2023
07fc2da
Update server.js
OlhaDanylevska Sep 13, 2023
c009ddb
removed ssl
OlhaDanylevska Sep 13, 2023
c2cbd71
created new end point
OlhaDanylevska Sep 14, 2023
15023f0
Update Counter.js
OlhaDanylevska Sep 14, 2023
a9dbf74
Update server.js
OlhaDanylevska Sep 14, 2023
8f7c9f0
Update server.js
OlhaDanylevska Sep 14, 2023
bf4b345
fixed query for update
OlhaDanylevska Sep 14, 2023
b8a2a07
Update server.js
OlhaDanylevska Sep 14, 2023
544b969
updated beckend rating
OlhaDanylevska Sep 14, 2023
54df1a4
new endpoint
OlhaDanylevska Sep 14, 2023
a9ed89b
edited delete end point
OlhaDanylevska Sep 15, 2023
ab8dfc8
edited delete end point
OlhaDanylevska Sep 15, 2023
612bde8
delete ssl
OlhaDanylevska Sep 15, 2023
9c28f3e
update put method
OlhaDanylevska Sep 15, 2023
4409201
Update server.js
OlhaDanylevska Sep 15, 2023
f857546
server change
OlhaDanylevska Sep 15, 2023
5be5398
Update Counter.js
OlhaDanylevska Sep 20, 2023
9dd842e
added error
OlhaDanylevska Sep 25, 2023
716d92c
Update server.js
OlhaDanylevska Sep 25, 2023
602de55
scripts
OlhaDanylevska Sep 28, 2023
4b804dd
changed node version in project
OlhaDanylevska Sep 28, 2023
c231df2
remover franslator
OlhaDanylevska Oct 1, 2023
9797566
test
OlhaDanylevska Oct 1, 2023
367d387
changed Counter
OlhaDanylevska Oct 2, 2023
7a65671
test
OlhaDanylevska Oct 2, 2023
048f115
changed db
OlhaDanylevska Jan 15, 2024
eca6c28
Update server.js
OlhaDanylevska Jan 15, 2024
a9cbd26
Update server.js
OlhaDanylevska Jan 15, 2024
3178ae1
Update server.js
OlhaDanylevska Jan 15, 2024
8c2f50e
Update server.js
OlhaDanylevska Jan 15, 2024
e1594f6
Update server.js
OlhaDanylevska Jan 15, 2024
a1d919f
Update server.js
OlhaDanylevska Jan 15, 2024
80e6ffb
Update server.js
OlhaDanylevska Jan 15, 2024
eec980f
Update server.js
OlhaDanylevska Jan 15, 2024
8426f6e
SERVER
OlhaDanylevska Jan 15, 2024
7ef3ff1
added favicon
OlhaDanylevska Jan 15, 2024
7c4e85e
Update index.html
OlhaDanylevska Jan 15, 2024
6e75ea9
added actions
OlhaDanylevska Jan 29, 2024
302a2c1
Update package.json
OlhaDanylevska Jan 29, 2024
fe469ef
specified the folder to build
OlhaDanylevska Jan 29, 2024
7185853
Update workflow.yml
OlhaDanylevska Jan 29, 2024
8eeeba3
Update workflow.yml
OlhaDanylevska Jan 29, 2024
206fa47
Update workflow.yml
OlhaDanylevska Jan 29, 2024
df88d73
Update workflow.yml
OlhaDanylevska Jan 29, 2024
8583946
Update workflow.yml
OlhaDanylevska Jan 29, 2024
2f39f3f
Update workflow.yml
OlhaDanylevska Jan 29, 2024
bacf31f
Update package.json
OlhaDanylevska Jan 29, 2024
8dfa600
Update workflow.yml
OlhaDanylevska Jan 29, 2024
4a54ded
deleted build directory
OlhaDanylevska Jan 29, 2024
1792049
Update package.json
OlhaDanylevska Jan 29, 2024
7474ee3
Update workflow.yml
OlhaDanylevska Jan 29, 2024
aef6c54
Update workflow.yml
OlhaDanylevska Jan 29, 2024
19906be
Update package-lock.json
OlhaDanylevska Jan 29, 2024
8842672
apdated scripts and
OlhaDanylevska Jan 29, 2024
3a9cbde
+
OlhaDanylevska Jan 29, 2024
857e2b0
1
OlhaDanylevska Jan 29, 2024
f06eef4
Update package.json
OlhaDanylevska Jan 29, 2024
d126bc2
Update package.json
OlhaDanylevska Jan 29, 2024
d883e04
5
OlhaDanylevska Jan 29, 2024
4b644d2
Update index.js
OlhaDanylevska Jan 29, 2024
29f3afb
reportWebVitals
OlhaDanylevska Jan 29, 2024
a8d8c2b
2
OlhaDanylevska Jan 29, 2024
f6fc045
Update workflow.yml
OlhaDanylevska Jan 29, 2024
aa2b918
345
OlhaDanylevska Jan 29, 2024
2a9ca3d
3446
OlhaDanylevska Jan 29, 2024
54fb5ef
Update workflow.yml
OlhaDanylevska Jan 29, 2024
d6b0a4b
Update workflow.yml
OlhaDanylevska Jan 29, 2024
5922399
added backend deployment action
OlhaDanylevska Jan 29, 2024
5a32f9a
1
OlhaDanylevska Jan 29, 2024
c050d24
Update backend.yml
OlhaDanylevska Jan 29, 2024
f7357ca
Update backend.yml
OlhaDanylevska Jan 29, 2024
0ad8625
Update backend.yml
OlhaDanylevska Jan 29, 2024
99a0707
Update backend.yml
OlhaDanylevska Jan 29, 2024
eb5eaf7
Update backend.yml
OlhaDanylevska Jan 30, 2024
6dd4368
Update backend.yml
OlhaDanylevska Jan 30, 2024
73fc097
Update backend.yml
OlhaDanylevska Jan 30, 2024
060db4e
Update server.js
OlhaDanylevska Jan 30, 2024
e7bbe16
Update backend.yml
OlhaDanylevska Jan 30, 2024
b7f0a75
Update backend.yml
OlhaDanylevska Jan 30, 2024
6ab9a23
Update backend.yml
OlhaDanylevska Jan 30, 2024
6e6dff7
Update backend.yml
OlhaDanylevska Jan 30, 2024
1b38042
Update backend.yml
OlhaDanylevska Jan 30, 2024
2cfc1d1
Update backend.yml
OlhaDanylevska Jan 30, 2024
85c4a11
Update backend.yml
OlhaDanylevska Jan 30, 2024
b7e09c4
Update backend.yml
OlhaDanylevska Jan 30, 2024
a42db0e
Update backend.yml
OlhaDanylevska Jan 30, 2024
d534229
Update backend.yml
OlhaDanylevska Jan 30, 2024
11c1187
Update backend.yml
OlhaDanylevska Jan 30, 2024
4ca9eca
Update backend.yml
OlhaDanylevska Jan 30, 2024
97aedcb
Update backend.yml
OlhaDanylevska Jan 30, 2024
998c631
Update backend.yml
OlhaDanylevska Jan 30, 2024
629892e
Update backend.yml
OlhaDanylevska Jan 30, 2024
a0070a0
34
OlhaDanylevska Jan 30, 2024
b47623d
Update package.json
OlhaDanylevska Jan 30, 2024
d0dfdfe
Update backend.yml
OlhaDanylevska Jan 30, 2024
14f154d
Update backend.yml
OlhaDanylevska Jan 30, 2024
9a3aded
Update backend.yml
OlhaDanylevska Jan 30, 2024
3b6cc95
Update backend.yml
OlhaDanylevska Jan 30, 2024
64ff50a
Update backend.yml
OlhaDanylevska Jan 30, 2024
04dbcc4
Update backend.yml
OlhaDanylevska Jan 30, 2024
7681894
Update backend.yml
OlhaDanylevska Jan 30, 2024
080221f
Update backend.yml
OlhaDanylevska Jan 30, 2024
48ab659
Update backend.yml
OlhaDanylevska Jan 30, 2024
d706b57
Update backend.yml
OlhaDanylevska Jan 30, 2024
55ea4dd
Update backend.yml
OlhaDanylevska Jan 30, 2024
898660b
Update backend.yml
OlhaDanylevska Jan 30, 2024
10e4a19
Update backend.yml
OlhaDanylevska Jan 30, 2024
7118ad6
Update backend.yml
OlhaDanylevska Jan 30, 2024
7422f67
Update backend.yml
OlhaDanylevska Jan 31, 2024
6530ce8
Update backend.yml
OlhaDanylevska Jan 31, 2024
07d658f
Update server.js
OlhaDanylevska Jan 31, 2024
7f457f7
Update backend.yml
OlhaDanylevska Jan 31, 2024
1582c88
Update backend.yml
OlhaDanylevska Jan 31, 2024
6582b84
Update backend.yml
OlhaDanylevska Jan 31, 2024
a820634
Update backend.yml
OlhaDanylevska Jan 31, 2024
9586225
Update backend.yml
OlhaDanylevska Jan 31, 2024
b64e718
Update backend.yml
OlhaDanylevska Jan 31, 2024
4b33f29
Update backend.yml
OlhaDanylevska Jan 31, 2024
078784c
Update backend.yml
OlhaDanylevska Jan 31, 2024
0618348
Update backend.yml
OlhaDanylevska Jan 31, 2024
8cf1f22
Update backend.yml
OlhaDanylevska Jan 31, 2024
29879b6
changed API
OlhaDanylevska Feb 3, 2024
aa2e798
some
OlhaDanylevska Feb 6, 2024
4663bed
Update Dockerfile
OlhaDanylevska Feb 8, 2024
a8e2d4b
er
OlhaDanylevska Feb 8, 2024
58e5d88
Update Dockerfile
OlhaDanylevska Feb 8, 2024
a77638d
4556
OlhaDanylevska Feb 8, 2024
6345180
all the repo
OlhaDanylevska Feb 9, 2024
c560a3b
2
OlhaDanylevska Feb 9, 2024
1d2b27b
first Image build
OlhaDanylevska Feb 10, 2024
1d41f43
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
2c4fd11
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
3af2509
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
23058f1
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
a7a961a
Update Dockerfile
OlhaDanylevska Feb 10, 2024
4052575
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
a88cfcc
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
a20f85f
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
17de0df
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
96a0940
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
cd869bd
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
12d2e45
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
f424065
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
6efafe1
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
e078388
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
e8efcac
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
3e44bb0
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
c6fdaf3
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
5c2ec32
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
b336fd5
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
5f62414
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
b517e26
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
48ac2ca
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
87b30df
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
ad3aa44
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
36cac95
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
45a84d5
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
7023cb3
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
d75bc7e
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
f35fdc1
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
b42b9c6
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
3c91cb6
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
40b6be8
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
00705e8
Update deploy-image.yml
OlhaDanylevska Feb 10, 2024
95fd769
added
OlhaDanylevska Feb 20, 2024
1d96711
Update deploy-image.yml
OlhaDanylevska Feb 20, 2024
8eee45b
4
OlhaDanylevska Feb 20, 2024
3955200
some
OlhaDanylevska Feb 20, 2024
363f371
Update deploy-image.yml
OlhaDanylevska Feb 20, 2024
5e2c9c7
added credentials for EC2 IAMUser
OlhaDanylevska Feb 20, 2024
cf7b4ed
changed terraform
OlhaDanylevska Feb 20, 2024
f84d6da
Update deploy-image.yml
OlhaDanylevska Feb 21, 2024
02146ad
Update deploy-image.yml
OlhaDanylevska Feb 21, 2024
4f9a88c
Update deploy-image.yml
OlhaDanylevska Feb 21, 2024
dcd7fb6
Update deploy-image.yml
OlhaDanylevska Feb 24, 2024
2443a8e
lust check
OlhaDanylevska Feb 24, 2024
e6400fb
34
OlhaDanylevska Feb 24, 2024
7aaebea
1
OlhaDanylevska Feb 24, 2024
41cc6d5
Update deploy-image.yml
OlhaDanylevska Feb 24, 2024
885190f
3455
OlhaDanylevska Feb 24, 2024
5996d8e
Update deploy-image.yml
OlhaDanylevska Feb 24, 2024
03638f8
Update deploy-image.yml
OlhaDanylevska Feb 24, 2024
5c70ddb
45
OlhaDanylevska Feb 24, 2024
30e48d0
4
OlhaDanylevska Feb 24, 2024
c6ce370
Update frontend.yml
OlhaDanylevska Feb 24, 2024
a30c89e
Update frontend.yml
OlhaDanylevska Feb 24, 2024
b2aeb26
3
OlhaDanylevska Feb 24, 2024
2c9cf1c
Update frontend.yml
OlhaDanylevska Feb 24, 2024
bd47714
Update frontend.yml
OlhaDanylevska Feb 24, 2024
284f0c2
Update frontend.yml
OlhaDanylevska Feb 24, 2024
1950dca
added API
OlhaDanylevska Feb 24, 2024
51c6a24
Update AddingVideo.js
OlhaDanylevska Feb 24, 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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.env
58 changes: 58 additions & 0 deletions client/package-lock.json

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

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"bootstrap": "^5.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-player": "^2.12.0",
"react-scripts": "^5.0.0",
"web-vitals": "^1.1.2"
},
Expand Down
25 changes: 25 additions & 0 deletions client/src/AddVideoButton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { useState } from "react"
import AddingVideo from "./AddingVideo";


const AddVideoButton = ({ allMyViveos, setAllMyVideos }) => {
const [pressedButton, setPressedButton] = useState(false)
const [buttonLable, setButtonLable] = useState("ADD YOUR VIDEO")
const handleClick = () => {
if (!pressedButton) {
setPressedButton(true)
setButtonLable("CLOSE")
} else if (pressedButton) {
setPressedButton(false)
setButtonLable("ADD YOUR VIDEO")
}
}
return (
<div>
<button className="main-button-to-add" onClick={handleClick}>{buttonLable}</button>
{pressedButton && <AddingVideo allMyViveos={allMyViveos} setAllMyVideos={setAllMyVideos} />}
</div>
)
}

export default AddVideoButton
71 changes: 71 additions & 0 deletions client/src/AddingVideo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import { useState } from "react"

const AddingVideo = ({ setAllMyVideos }) => {
const [title, setTitle] = useState("")
const [url, setUrl] = useState("")
const [errorMessage, setErrorMessage] = useState("")

async function handleAddButton(e) {
e.preventDefault();
const newVideo = {
title,
url
};

try {
// Add the new video
const res = await fetch("https://youtube-video-server.onrender.com/videos", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(newVideo)
});

if (!res.ok) {
if (!newVideo.url && !newVideo.title) {
setErrorMessage("URL and title fields are missing")
}
else if (!newVideo.url) {
setErrorMessage("URL field is missing")
} else if (!newVideo.title) {
setErrorMessage("Title field is missing")
}
} else if (res.ok) {
setErrorMessage("")
}

// Fetch the updated video list
const response = await fetch("https://youtube-video-server.onrender.com/videos");

if (!response.ok) {
throw new Error(`Failed to fetch video list (${response.status})`);
}
const data = await response.json();
setAllMyVideos(data);

// Reset the input fields

setTitle("");
setUrl("");

} catch (error) {
console.error("Error:", error);
}
}

return (
<div className="form-holder">
<h3>Add Your Favorite Video</h3>
<p>{errorMessage}</p>
<form onSubmit={handleAddButton}>

<input type="text" defaultValue="" placeholder="Type in the title of the video you like" value={title} onChange={(e) => setTitle(e.target.value)}></input>
<input tupe="url" defaultValue="" placeholder="Link for the video" value={url} onChange={(e) => setUrl(e.target.value)}></input>

<button className="submit-form-button">Add to the List</button>

</form>
</div>
)
}

export default AddingVideo
Loading
Loading