Skip to content

Commit d60ead3

Browse files
committed
As much as I wanna attempt the stretch I am going to stop messing with a passing project....
1 parent 83a1a62 commit d60ead3

File tree

9 files changed

+30
-123
lines changed

9 files changed

+30
-123
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Adding Data Persistence Sprint Challenge
22

3+
4+
# [Results](./notes/results.md)
5+
6+
7+
8+
39
**Read these instructions carefully. Understand exactly what is expected _before_ starting this Sprint Challenge.**
410

511
This challenge allows you to practice the concepts and techniques learned over the past sprint and apply them in a concrete project. This sprint explored **Data Persistence**. During this sprint, you studied **RDBMS, including SQL, multi-table queries, and data modeling**. In your challenge this week, you will demonstrate your mastery of these skills by creating **a database based on given specifications**.

data/lambda.db3

0 Bytes
Binary file not shown.

data/seeds/00-cleanup.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

data/seeds/01-projects.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

data/seeds/02-resources.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

data/seeds/03-tasks.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

data/seeds/notes.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

notes/2021-07-16-16-47-53.png

34.2 KB
Loading

notes/results.md

Lines changed: 24 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,41 @@
11
```
2-
./codegrade_mvp.test.js (33.814 s)
3-
✓ [0] sanity check (342 ms)
4-
server.js
5-
projects endpoints
6-
[GET] /api/projects
7-
✓ [1] can get all projects that exist in the table (206 ms)
8-
✓ [2] each project contains project_name, project_description and project_completed (as a boolean) (187 ms)
9-
[POST] /api/projects
10-
✓ [3] can add a new project to the table (566 ms)
11-
✓ [4] responds with the newly created project with its project_completed as a boolean (241 ms)
12-
✓ [5] rejects projects lacking a project_name with an error status code (192 ms)
13-
resources endpoints
14-
[GET] /api/resources
15-
✓ [6] can get all resources in the table (175 ms)
16-
[POST] /api/resources
17-
✓ [7] can add a new resource to the table (210 ms)
18-
✓ [8] responds with the newly created resource (184 ms)
19-
✓ [9] rejects a resource with an existing resource_name with an error status code (165 ms)
20-
tasks endpoints
21-
[GET] /api/tasks
22-
✓ [10] can get all tasks in the table (223 ms)
23-
✓ [11] each task contains task_notes and task_description and task_completed (as a boolean) (223 ms)
24-
✓ [12] each task contains the project_name and the project_description (221 ms)
25-
[POST] /api/tasks
26-
✓ [13] can add a new task to the db (361 ms)
27-
✓ [14] responds with the newly created task with the task_completed as a boolean (280 ms)
28-
✓ [15] rejects a task lacking a task_description with an error status code (254 ms)
29-
✓ [16] rejects a task lacking a project_id with an error status code (252 ms)
30-
✓ [17] rejects a task containing an invalid project_id with an error status code (258 ms)
31-
PASS ./codegrade_mvp.test.js (6.311 s)
32-
✓ [0] sanity check (169 ms)
2+
3+
at Object.<anonymous> (codegrade_mvp.test.js:14:12)
4+
PASS ./codegrade_mvp.test.js (20.545 s)
5+
✓ [0] sanity check (289 ms)
336
server.js
347
projects endpoints
358
[GET] /api/projects
36-
✓ [1] can get all projects that exist in the table (150 ms)
37-
✓ [2] each project contains project_name, project_description and project_completed (as a boolean) (133 ms)
9+
✓ [1] can get all projects that exist in the table (166 ms)
10+
✓ [2] each project contains project_name, project_description and project_completed (as a boolean) (150 ms)
3811
[POST] /api/projects
39-
✓ [3] can add a new project to the table (179 ms)
40-
✓ [4] responds with the newly created project with its project_completed as a boolean (163 ms)
41-
✓ [5] rejects projects lacking a project_name with an error status code (129 ms)
12+
✓ [3] can add a new project to the table (356 ms)
13+
✓ [4] responds with the newly created project with its project_completed as a boolean (187 ms)
14+
✓ [5] rejects projects lacking a project_name with an error status code (127 ms)
4215
resources endpoints
4316
[GET] /api/resources
44-
✓ [6] can get all resources in the table (143 ms)
17+
✓ [6] can get all resources in the table (161 ms)
4518
[POST] /api/resources
46-
✓ [7] can add a new resource to the table (153 ms)
47-
✓ [8] responds with the newly created resource (128 ms)
48-
✓ [9] rejects a resource with an existing resource_name with an error status code (120 ms)
19+
✓ [7] can add a new resource to the table (177 ms)
20+
✓ [8] responds with the newly created resource (137 ms)
21+
✓ [9] rejects a resource with an existing resource_name with an error status code (145 ms)
4922
tasks endpoints
5023
[GET] /api/tasks
51-
✓ [10] can get all tasks in the table (180 ms)
52-
✓ [11] each task contains task_notes and task_description and task_completed (as a boolean) (170 ms)
53-
✓ [12] each task contains the project_name and the project_description (165 ms)
24+
✓ [10] can get all tasks in the table (240 ms)
25+
✓ [11] each task contains task_notes and task_description and task_completed (as a boolean) (237 ms)
26+
✓ [12] each task contains the project_name and the project_description (258 ms)
5427
[POST] /api/tasks
55-
✓ [13] can add a new task to the db (267 ms)
56-
✓ [14] responds with the newly created task with the task_completed as a boolean (199 ms)
57-
✓ [15] rejects a task lacking a task_description with an error status code (194 ms)
58-
✓ [16] rejects a task lacking a project_id with an error status code (214 ms)
59-
✓ [17] rejects a task containing an invalid project_id with an error status code (223 ms)
28+
✓ [13] can add a new task to the db (321 ms)
29+
✓ [14] responds with the newly created task with the task_completed as a boolean (289 ms)
30+
✓ [15] rejects a task lacking a task_description with an error status code (338 ms)
31+
✓ [16] rejects a task lacking a project_id with an error status code (255 ms)
32+
✓ [17] rejects a task containing an invalid project_id with an error status code (251 ms)
6033
6134
Test Suites: 1 passed, 1 total
6235
Tests: 18 passed, 18 total
6336
Snapshots: 0 total
64-
Time: 6.342 s, estimated 34 s
37+
Time: 20.59 s
6538
6639
```
40+
41+
![](2021-07-16-16-47-53.png)

0 commit comments

Comments
 (0)