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

Overview

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!

You might also like...

Automagically bypass hcaptcha challenges with http api, with puppeteer, selenium, playwright browser automation scripts to bypass hCaptcha programmatically

Automagically bypass hcaptcha challenges with http api, with puppeteer, selenium, playwright browser automation scripts to bypass hCaptcha programmatically. For help you can message on discord server with the bellow link. You can also create an issue.

Jan 2, 2023

A simple Node.js code to get unlimited instagram public pictures by every user without api, without credentials.

A simple Node.js code to get unlimited instagram public pictures by every user without api, without credentials.

Instagram Without APIs Instagram Scraping in August 2022, no credentials required This is a Node.js library, are you looking for the same in PHP? go t

Dec 29, 2022

This will create a REST API using Express JS and MongoDB removing the hassle of creating everything from scratch.

rest-api-init Fastest way to create REST API with Node.js, Express.js & MongoDB. Prerequisites Node.js needs to be installed. MongoDB Compass needs to

Dec 3, 2022

To-do list is a tool that helps to organize your day. It simply lists the things that you need to do and allows you to mark them as complete. It is tested by JavaScript Unit testing using Jest framework. It is build by using ES6 and Webpack!

Project Name To Do list: interactive list Description the project. In this project, I added some functionality to my application to make it interactiv

Nov 11, 2022

A collection of coding challenges from interviews and websites

coding-challenges All of these folders are challenges that I've make for interviews and from tutorials, now I'll enumerate the ones that are from inte

Jul 13, 2022

Social media platform that hosts community-driven challenges where everyone can play and compete

Social media platform that hosts community-driven challenges where everyone can play and compete

Komo A social media platform that hosts community-driven challenges where everyone can play and compete. How To Install Komo TBA Preview Home Screen A

Jun 13, 2022

The official challenges and deployment source code files used in San Diego CTF 2022.

SDCTF 2022 Here is the challenge and infrastructure files of San Diego CTF 2022. Challenge files include source code that implement the challenge idea

Dec 8, 2022

Collection of browser challenges

🔥 CTF browser challenges 🔥 Collection of browser challenges Challenge CTF Difficulty Baby WASM RITSEC CTF 2021 ⭐ Kit Engine picoCTF 2021 ⭐ oob-v8 *C

Dec 15, 2022
Owner
Erick Wendel
Professional Trainer, Microsoft MVP, Google Dev Expert and Community co-organizer 🇧🇷 @nodebr #mvpbr #opensource #typescript #nodejs
Erick Wendel
CTF (Capture The Flag) is a type of information security competition that challenges contestants to find solutions or complete various tasks.

WHAT IS CTF? CTF (Capture The Flag) is a type of information security competition that challenges contestants to find solutions or complete various ta

Nicolas Saputra Gunawan 18 Dec 12, 2022
Run REST APIs in Node.js applications frameworks (Express, Koa, Hapi and Fastify) on top of any Serverless Cloud.

?? Serverless Adapter Install | Usage | Support | Architecture | Credits Run REST APIs and other web applications using your existing Node.js applicat

Vinicius Lourenço 45 Jan 1, 2023
A testing focused Remix Stack, that integrates E2E & Unit testing with Playwright, Vitest, MSW and Testing Library. Driven by Prisma ORM. Deploys to Fly.io

Live Demo · Twitter A testing focused Remix Stack, that integrates E2E & Unit testing with Playwright, Vitest, MSW and Testing Library. Driven by Pris

Remix Stacks 18 Oct 31, 2022
Create a new challenge for jshero.platzi.com, share your experience creating amazing challenges.

JSHero - jshero.platzi.com ?? Create a new challenge for jshero.platzi.com, share your experience creating amazing challenges. Create a new challenge:

Comunidad Platzi 28 Oct 19, 2022
Create a new challenge for jshero.platzi.com, share your experience creating amazing challenges.

JSHero - jshero.platzi.com ?? Create a new challenge for jshero.platzi.com, share your experience creating amazing challenges. Create a new challenge:

PlatziLabs 20 Apr 27, 2022
An users NodeJS API without packages libs or frameworks!

NodeJS Users API - Without Frameworks And Packages ?? Table of Contents About Getting Started Usage Built Using Authors ?? About Purpose of this proje

Nathan Cotrim Lemos 31 Feb 7, 2022
This plugin can generate timestamps for video, audio and Bilibili video, it takes you to the corresponding video/audio position when clicked.

logseq-plugin-media-ts 本插件能够生成视频、音频以及 B 站视频的时间戳,点击时间戳后会跳转到对应的音视频位置。 This plugin can generate timestamps for video, audio and Bilibili video, it takes

Seth Yuan 58 Jan 3, 2023
This is an educational project to make a To Do List web application without using JS frameworks

A simple ToDo list project made by JavaScript. One can add, edit and remove todos as well as marking them as completed.

Mostafa Ahangarha 6 Nov 26, 2022
REST API complete test suite using openapi.json

Openapi Test Suite Objective This package aims to solve the following two problems: Maintenance is a big problem to solve in any test suite. As the AP

PLG Works 21 Nov 3, 2022