- follow the hints inside this readme file
- some tasks require the code change, search for the keywords
todo-
, you will see thetodo-2.1
todo-3.1
such things, then follow the hint and change the code. - if you stuck in some task, go to this change and find out what's the correct
- you can also check out this commit to get a working version,
git checkout 7e8389cf409017c607c1113029eb852d3950a1e8
- add dependency of Express.js
- option 1: via
npm install --save [package name]
- option 2: via modify the
package.json
and runnpm install
- option 1: via
- implement and export a module function of create task, search for
todo-2.1
,todo-2.2
- import the module function and use it, search for
todo-3.1
,todo-3.2
npm start
- to test the implementation, run
npm test
, if the unit test pass, then your implementation is correct, - to test the api, run
curl -d '{"task":"a new task"}' -H "Content-Type: application/json" -X POST http://localhost:3001
, it will return an array includea new task
- to test the implementation, run
- add custom command
npm run hello
- you need to go to the
package.json
and under thescript
field, add a new commandhello
with the valuenode hellotechladies.js
- then try
npm run hello
, if success, you will see ahello TechLadies
- you need to go to the