This project is based on Erick Wendel's Video.
The idea of this project is to build a NodeJS API using only native libs and without any frameworks. I expect to improve my acknowledge about NodeJS native libs and undestand more how the famous HTTP frameworks works internally.
-
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
-
Download the postman collection file here
This collection has the Heroes endpoints.