Skip to content

Commit 16b9e1d

Browse files
authored
Step03 (#69)
* Fizx logo on README * Add steps for API Design Kata
1 parent 9277a2d commit 16b9e1d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

katas/api-node-imbd/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,39 @@ This is a Kata which aims at developing a Node API for creating a personal Movie
2424

2525
## User Story 2
2626
Coming soon...
27+
28+
### Step 01 - Core
29+
30+
- Set up your project by initiate NPM
31+
- Install Jest
32+
- Create your first test without any implementation.
33+
- Test your code and see if you get back the correct response
34+
35+
```
36+
input (title, description)
37+
output
38+
movie: {
39+
id,
40+
title,
41+
description
42+
}
43+
status: 'successfully added movie'
44+
```
45+
46+
### Step 02 - Core
47+
48+
- Create a mock / fake DB.
49+
- Use Dependency Injection to integrate the DB into your implementation.
50+
- Test for duplicated movie
51+
- Use `jest.spyOn` to test the save and getAll method of your DB
52+
- Created a index file in the core to export all the controllers
53+
54+
55+
### Step 03 - DB
56+
57+
- Create tests for the DB
58+
- Install Mongo and Mongoose
59+
- Connect to a DB
60+
- Create the movie schema
61+
- Async / Await
62+
- Add the DB methods (save and getAll)

0 commit comments

Comments
 (0)