-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPseudocode.txt
75 lines (61 loc) · 2.36 KB
/
Pseudocode.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<-------REQUIREMENTS--------->
- Have at least 2 data entities (main functional idea for app & 1:M/M:M relationship with that main entity - embedded or referenced)
- Have full CRUD operations
<-------APP'S USER STORIES--------->
As a Visitor:
- AAV, I want to search for eco-friendly household alternatives
- AAV, I want to be able to sort the alternatives (by household category)
As an Authenticated Student:
- AAS, I want to add alternatives
- AAS, I want to delete an alternative
- AAS, I want to update an alternative
<-------ENTITY RELATIONSHIP DIAGRAM--------->
1:M or M:M relationship (Item: Alternative)
| Household item | Alternative to Household Item |
----------------------------------------- -----------------------------
- id (ObjectId) - id (ObjectId)
- title (string) - content (String)
- category (string) - description (String)
- eco alternative ([ObjectId])
M:M:
- Shampoo, Conditioner, Body Wash, Dish Soap: all have same alternatives
Bar, Refill, Buy in bigger size (bulk), Terracycle DropBox for disposables, etc.
1:M:
- Specific items (ex. hair removal): alternatives are specific to that one item
Threading, Sugaring, Epilator, Shaving, Terracycle DropBox for disposables, etc.
NOTES:
- Household item: category(string) --> ex. living room, bathroom, kitchen, etc.
- Alternative: content (array) --> want to provide multiple options to user
- Alternative: description (why is the alternative the better option?)
- Alternative: include timestamp: true --> keeps track of date alternative was created
<-------WIREFRAMES LIST--------->
Contains wireframes for the app's main pages of functionality (e.g. Landing page, Posts Index Page, Fave Posts Page, Add Post Page, etc.)
- LANDING PAGE:
- LIST OF ITEMS SWAPPED:
- ADD ITEM PAGE:
LANDING PAGE: title with background image
1. RESTful Route:
2. Add UI:
3. Router:
4. Controllers:
5. Views:
CREATE ALTERNATIVE:
1. RESTful Route: POST /swaps
2. Add UI:
3. Router:
4. Controllers:
5. Views:
DELETE ALTERNATIVE:
1. RESTful Route: DELETE /swaps/:id
2. Add UI:
3. Router:
4. Controllers:
5. Views:
SEARCH FOR 1 ALTERNATIVE:
1. RESTful Route: GET /swaps/:id
2. Add UI:
3. Router:
4. Controllers:
5. Views:
<-------ICE BOX--------->
What is an icebox? Ideas (what you want to do), Backlog of potential things to do