complete-nodejs-webapi-without-frameworks-yt
complete-nodejs-webapi-without-frameworks-yt copied to clipboard
Examples and challenges of my video about Creating and testing a complete Node.js Rest API (Without frameworks)
Building a complete Node.js WebApi + testing with no frameworks
Welcome, this repo is part of my youtube video about Creating and testing a complete Node.js Rest API (With no frameworks).
First of all, leave your star 🌟 on this repo.
Access our exclusive telegram channel so I'll let you know about all the content I've been producing
Source code of the examples showed in class
- Access them in examples-in-class/web-api
Features Checklist + Challenges
-
Web API
- [ ] it should have an endpoint for storing heroes' data
- [ ] it should have an endpoint for retrieving heroes' data
- [ ] it should have an endpoint for updating heroes' data
- [ ] it should have an endpoint for deleting heroes' data
- [ ] it should test when the application throws an error
-
Testing
-
Unit
- [ ] it should test all files on the routes layer
- [ ] it should test all files on the repositories layer
- [ ] it should test all files on the factories layer
- Plus
- [ ] it should reach 100% code coverage (it's currently not possible to get code coverage metrics using only the native Node.js, see c8 for this task)
-
Integration / E2E
- [ ] it should test the endpoint for storing heroes' data
- [ ] it should test the endpoint for retrieving heroes' data
- [ ] it should test the endpoint for updating heroes' data
- [ ] it should test the endpoint for deleting heroes' data
- [ ] it should test when the application throws an error
-
Notes
-
Should you have some difficulties solving the problems, please comment on the Youtube video
-
As soon as you've been finishing the tasks, comment on the Youtube video so all other students can be pushed forward by your efforts