This is a vanilla Node.js rest API created to show that it is possible to create a rest API using only vanilla Node.js

Overview

vanilla Node by Eduardo Dantas

This is a vanilla Node.js rest API created to show that it is possible to create a rest API using only vanilla Node.js. But in most cases, I would recommend you to use something like Express in a production project for productivity purposes.

What is inside?

This project uses lot of stuff such as:

Getting Started

  1. clone repository and go to project folder
git clone https://github.com/EduD/vanilla-node-rest-api-tdd.git
cd vanilla-node-rest-api-tdd
  1. Create .env and populate database:
# see .env.example to create same variables in .env
touch .env
npm run seed
  1. run the development server:
npm run dev

You can use insomnia to test all endpoints

# ROUTES
GET      /tasks
POST     /tasks
GET      /task/:id
PUT      /task/:id
DELETE   /task/:id

Commands

# runs your application (you need config your .env with variable "PORT")
npm run dev

# Populate fake data  (you need config your .env with variable "SEED_AMOUNT")
npm run seed

# run all tests
npm run test

# run all unit tests
npm run test:unit

# run all integration tests
npm run test:integration

# run code coverage
npm run test:coverage
You might also like...

A Twitter filtered search to only get the live broadcasts hosted on Twitter itself, Built using Vanilla JS and Node.js

Twitter Broadcasts Search A Twitter filtered search to only get the live broadcasts hosted on Twitter itself, Built using Vanilla JS and Node.js. Live

Oct 6, 2022

๐ŸŒˆ GitHub following, followers, only-following, only-follower tracker ๐ŸŒˆ

๐ŸŒˆ GitHub following, followers, only-following, only-follower tracker ๐ŸŒˆ

github-following-tracker GitHub following, followers, only-following, only-follower tracker ๐Ÿ‘€ Just enter your GitHub name and track your followings!

Jun 15, 2022

End-to-End type safety for REST APIs written in Fastify. Only problem is you have to explicity export and register route handlers. LOL

Chino intelligence in japaneese End-to-End type safety for REST APIs written in Fastify. Only problem is you have to explicity export and register rou

Sep 12, 2022

A vanilla js library to show preview images on hover

Hover Preview A vanilla js library to show preview images on hover, check a Demo here Please watch ๐Ÿ‘€ or star ๐ŸŒŸ this repo if you like it. Getting sta

Dec 13, 2021

This is a todo list created using webpack and vanilla javascript.

This is a todo list created using webpack and vanilla javascript. It lets a user add and remove to do items. It contains testing suite using jest framework.

Dec 15, 2022

Weather app created using vanilla JavaScript and APIs. You can search cities worldwide and get current and forecast weather features.

Weather app created using vanilla JavaScript and APIs. You can search cities worldwide and get current and forecast weather features.

Weather App Live Demo About the Project Weather app created using vanilla JavaScript and APIs. You can search cities worldwide and get current and for

Dec 28, 2022

Easily create key board shortcuts for your JS functions. Built using JS only with no other dependency. Inspired from MacOS spotlight

floodlightjs Inspired from macOS spotlight, floodlight is simple JS library that will show a search area. How the search is handled is completely on y

Aug 12, 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

This project is about building a web application to show a weather forecast using weather API.

This project is about building a web application to show a weather forecast using weather API.

Weather App Web application to show the current and upcoming week weather forecast. Want to see live preview ยป โœง View Demo โœง Report Bug โœง Getting Star

Dec 25, 2022
Owner
Eduardo Dantas
npm run life
Eduardo Dantas
TVMAZE API-based webapp, receives TV show episodes with all data about that TV show.

TVMAZE API-based webapp, receives TV show episodes with all data about that TV show. The Webapp has two interfaces: A home page, showing a list of Tv show episodes you can like. And a popup window with more data about the TV show that you can comment on.

Yasin Warsame 4 Aug 9, 2022
This is the simplest possible nodejs api using express.

NodeJS JWT Authentication sample A Todo Application with NodeJS and ExpressJS that uses JWT authentication to manage each user's todos. Available APIs

Yacine Maouche 3 Sep 11, 2022
Awesome critique of crypto / web3. Curated list of high quality critique plus background. Seek to be as constructive as possible.

Awesome critique of crypto/web3 Awesome critique of crypto/web3, etc. Contributions are welcome. Critique General Stephen Diehl series - https://www.s

Rufus Pollock 1.5k Jan 1, 2023
๐Ÿคช A linter, prettier, and test suite that does everything as-simple-as-possible.

Features Fully Featured Code Grading Knowing if you need to work on your code is important- that's why we grade your code automatically. But, unlike o

Fairfield Programming Association 18 Sep 25, 2022
A comprehensive collection of useful tools developed with the help of Ethers.js to interact with the Ethereum Blockchain to develop great DeFi apps as quickly and easily as possible.

hudi-packages-ethersfactory How to install Installing with npm For more information on using npm check out the docs here. npm i @humandataincome/ether

HUDI 6 Mar 30, 2022
This is a library that makes it possible to change the configuration values of the Remix compiler (esbuild).

?? remix-esbuild-override โš ๏ธ While I believe you will most likely get a lot of benefit from using this library, it can sometimes destroy your product.

AijiUejima 73 Dec 22, 2022
๐Ÿ–ผ๏ธ Image proxy for Next.js. Makes it possible to use dynamic domains in next/image component.

Next.js Image Proxy Image proxy for Next.js. Makes it possible to use dynamic domains in next/image component. โ” Motivation This library makes it poss

Blazity 30 Dec 1, 2022
It is a simple Math Sprint Game in which the user must agree or disagree with the answers to math problems in the quickest time possible.

MATH-SPRINT-GAME The user must agree or disagree with the results of math equations in this Math Sprint Game. The amount of time the player spends mak

AMEY THAKUR 8 Aug 1, 2022
Tiny and fast utility to extract all possible values for a given enum.

Tiny (208B) and fast utility to extract all possible values for a given enum.

Andrea Cappuccio 2 Apr 18, 2022
Zero Two Bot,A fully Modular Whatsapp Bot to do everything possible in WhatsApp by Team Zero Two

?? ???????? ?????? ???? ?? A Moduler WhatsApp Bot designed for both PM and Groups - To take your boring WhatsApp usage into a whole different level. T

Sam Pandey 69 Dec 25, 2022