Skip to content

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.

Notifications You must be signed in to change notification settings

walldba/nodejs-api-without-frameworks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building a complete Node.js Api + testing without frameworks

Index

About

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.

Checklist

  • 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

Postman

Download the postman collection file here

This collection has the Heroes endpoints.

Have fun!

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages