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

Full Stack Assessment Project v2 upgrade #454

Merged
merged 43 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
93cde76
Full Stack Assessment Project v2 upgrade
sztupy Jan 26, 2024
d7bb957
add setup for deployment
Mar 27, 2024
f7b9fcc
change object key in json response
Mar 27, 2024
9622434
display videos on frontend
Mar 28, 2024
c787fc1
extract youtube id for video iframe
Mar 28, 2024
4e1b9f2
Revert "extract youtube id for video iframe"
Mar 28, 2024
1e8c8ee
Revert "display videos on frontend"
Mar 28, 2024
28ae94d
Revert "change object key in json response"
Mar 28, 2024
21beb9d
Revert "add setup for deployment"
Mar 28, 2024
f86295b
point to requirements dir
Apr 3, 2024
5e73d4e
remove exercises dir
Apr 3, 2024
f265a10
mv levels to requirements dir
Apr 3, 2024
0bdb759
move example response to data dir at top level
Apr 3, 2024
61ffda1
update copy in requirements
Apr 3, 2024
b58d9f4
fix grammar in 110
Apr 3, 2024
6eaa5ae
make copy more incisive
Apr 3, 2024
42e4e43
fix grammar
Apr 3, 2024
b65f0a1
add acceptance criteria
Apr 3, 2024
ff090dc
remove implementation detail
Apr 3, 2024
ff5b547
add acceptance criteria
Apr 3, 2024
0f48eb6
tweak copy
Apr 3, 2024
96af75c
add acceptance criteria
Apr 3, 2024
2877057
revamp final acceptance criteria
Apr 3, 2024
1a5cee6
add checklist points
Apr 3, 2024
29fcbb4
tweak requirements
Apr 3, 2024
67a87de
hoist acceptance criteria
Apr 3, 2024
2739ce5
fix headings
Apr 3, 2024
42115e8
highlight endpoint definition
Apr 3, 2024
aade4fd
improve copy readability
Apr 3, 2024
f2b2cbe
update link text
Apr 3, 2024
c1d2163
refer trainees to the setup steps
Apr 3, 2024
121d689
improve acceptance criteria
Apr 3, 2024
9c82f6d
further improve acceptance criteria
Apr 3, 2024
31494a7
further improve acceptance criteria
Apr 3, 2024
0d5f73c
update first set of acceptance criteria
Apr 3, 2024
657a9dc
tweak initial user stories
Apr 3, 2024
2a94dec
further tweak requirements
Apr 3, 2024
9313607
rm ref to exercises
Apr 3, 2024
90d0d87
ref to requirements instd of exercises
Apr 3, 2024
1ba5f90
ref to requirements
Apr 3, 2024
751d978
clarify you are booting up local env
Apr 3, 2024
fd15a61
tweak links
Apr 3, 2024
6e2752b
Merge branch 'main' of github.com:CodeYourFuture/Full-Stack-Project-A…
Apr 3, 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
8 changes: 8 additions & 0 deletions db/initdb.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
DROP TABLE IF EXISTS videos CASCADE;

CREATE TABLE videos(
name VARCHAR,
src VARCHAR
);

INSERT INTO videos (name,src) VALUES ('The Coding Train', 'https://www.youtube.com/watch?v=HerCR8bw_GE');
Dedekind561 marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 1 addition & 1 deletion exercises/data/example_data.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"Never Gonna Give You Up","https://www.youtube.com/watch?v=dQw4w9WgXcQ"
"The Coding Train","https://www.youtube.com/watch?v=HerCR8bw_GE"
"Mac & Cheese | Basics with Babish","https://www.youtube.com/watch?v=FUeyrEN14Rk"
"Videos for Cats to Watch - 8 Hour Bird Bonanza","https://www.youtube.com/watch?v=xbs7FT7dXYc"
Expand Down
115 changes: 114 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"devDependencies": {
"@codeyourfuture/eslint-config-standard": "^4.0.3",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3"
"cross-env": "^7.0.3",
"nodemon": "^3.1.0"
Dedekind561 marked this conversation as resolved.
Show resolved Hide resolved
},
"workspaces": [
"client",
Expand Down
5 changes: 3 additions & 2 deletions server/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import db from "./db.js";
const router = Router();

router.get("/videos", async (_, res) => {
const result = await db.query("SELECT 'ok' ok");
res.json(result.rows[0]);
const result = await db.query("SELECT * FROM videos;");
Dedekind561 marked this conversation as resolved.
Show resolved Hide resolved
console.log(result);
res.json({ msg: result.rows });
});

export default router;