-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplan,md
60 lines (47 loc) · 1.55 KB
/
plan,md
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
Basic server set-up
npm init ✅
npm i express ✅
created gitignore added node modules ✅
created start script "start": "node index.js" ✅
added "type": "module", to package.json ✅
installed nodemon ✅
installed dot env ✅
set env up and database creds ✅
install jason web tokens ✅
get a secret key back ✅
create verify function✅
tests for endpoints✅
Create Routes - Users/Events
- USER
- POST create User✅
- POST sign in
- PATCH edit user details
- Events
- POST create event✅
- DELETE event✅
- PATCH edit user details✅
- GET all events✅
- GET by id✅
Create scripts for database table creation
- install/use pg and query✅
- Create the user table✅
- Create the event table✅
- Populate the users table✅
- populate the events table✅
- drop the users table✅
- drop the events table✅
Create Models - functions
- Creates a new event (POST)✅
- UPDATE AN EVENT BY ID (PATCH)✅
- Search by event ID (GET)✅
- Delete an event by id (DELETE)✅
- Selects all users from the users table (GET)✅
- Creates a new user in the users table(POST)✅
- UPDATE A USER BY ID(PATCH)✅
- Delete user from the users table(DELETE)✅
Added bcrypt to hash the passwords✅
Need to verify that patch cannot change email to an existing one. //half done not tested
Need to return something if email is already in use.
need to setup request codes e.g 201
set up scripts to auto drop, create, populate tables when tests are run. then fixed tests.git
Take the verify function out from the app.js and import where needed.