MCPcopy Index your code
hub / github.com/ErickWendel/complete-nodejs-webapi-without-frameworks-yt

github.com/ErickWendel/complete-nodejs-webapi-without-frameworks-yt @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
18 symbols 37 edges 10 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
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 so I'll let you know about all the content I've been producing

Source code of the examples showed in class

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

Have fun!

Core symbols most depended-on inside this repo

routes
called by 2
examples-in-class/web-api/src/routes/heroRoute.js
#currentFileContent
called by 2
examples-in-class/web-api/src/repositories/heroRepository.js
handlerError
called by 1
examples-in-class/web-api/src/handler.js
generateInstance
called by 1
examples-in-class/web-api/src/factories/heroFactory.js
find
called by 1
examples-in-class/web-api/src/repositories/heroRepository.js
create
called by 1
examples-in-class/web-api/src/repositories/heroRepository.js
handler
called by 0
examples-in-class/web-api/src/handler.js
constructor
called by 0
examples-in-class/web-api/src/services/heroService.js

Shape

Method 8
Class 6
Function 4

Languages

TypeScript100%

Modules by API surface

examples-in-class/web-api/src/repositories/heroRepository.js6 symbols
examples-in-class/web-api/src/services/heroService.js5 symbols
examples-in-class/web-api/src/entities/hero.js3 symbols
examples-in-class/web-api/src/handler.js2 symbols
examples-in-class/web-api/src/routes/heroRoute.js1 symbols
examples-in-class/web-api/src/factories/heroFactory.js1 symbols

For agents

$ claude mcp add complete-nodejs-webapi-without-frameworks-yt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact