Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/erickwendel/complete-nodejs-webapi-without-frameworks-yt

Examples and challenges of my video about Creating and testing a complete Node.js Rest API (Without frameworks)
https://github.com/erickwendel/complete-nodejs-webapi-without-frameworks-yt

fetch javascript node nodejs runner test testing

Last synced: 3 days ago
JSON representation

Examples and challenges of my video about Creating and testing a complete Node.js Rest API (Without frameworks)

Awesome Lists containing this project

README

        

# 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**](https://bit.ly/ErickWendelContentHub) 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](./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](https://www.npmjs.com/package/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**](https://youtu.be/xR4D2bp8_S0)

- As soon as you've been finishing the tasks, comment on the [**Youtube video**](https://youtu.be/xR4D2bp8_S0) so all other students can be pushed forward by your efforts

## Have fun!