File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff 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
2626Coming 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)
You can’t perform that action at this time.
0 commit comments