An users NodeJS API without packages libs or frameworks!

Overview

Project logo

NodeJS Users API - Without Frameworks And Packages

License


πŸ“ Table of Contents


🧐 About

Purpose of this project was build a simple users API in a different way we see all time in nodeJS ecosystem, usually using Express, Adonis, Hapi... I used just the native modules of nodeJS and a JSON file as DataBank, that is managed using node fs



🏁 Getting Started


Installing

git clone https://github.com/NathanCotrim/NodeJS-API.git

or - (GitHub CLI)

gh repo clone NathanCotrim/NodeJS-API 

Running

node src/server.js

🎈 Usage


Main API Routes

http://localhost:3000/users

GET | List all users


http://localhost:3000/user/:id

GET | Get user by Id


http://localhost:3000/new/user

POST | Create User

Receives a JSON:

{
  "name": "Tester",
  "email": "[email protected]"
}

http://localhost:3000/update/user/:id

PATCH | Update User

Receives a JSON with new Information:

{
  "name": "TesterUpdated", (?)
  "email": "[email protected]" (?)
}

http://localhost:3000/delete/user/:id

DELETE | Delete User



⛏️ Built Using


✍️ Author - Nathan Cotrim - MIT License

You might also like...

Semantic Release plugin to create and publish NuGet packages.

semantic-release-nuget semantic-release plugin to create and publish a NuGet package. Step Description verifyConditions Verify the presence of the NUG

Jan 2, 2023

Solidex is a list of SolidJS ecosystem resources and packages.

Solidex is a list of SolidJS ecosystem resources and packages.

Solidex The following is a list of articles, packages and other resources that focus on the SolidJS ecosystem. Solidex is a platform for listing and m

Dec 18, 2022

Package fetcher is a bot messenger which gather npm packages by uploading either a json file (package.json) or a picture representing package.json. To continue...

package-fetcher Ce projet contient un boilerplate pour un bot messenger et l'executable Windows ngrok qui va permettre de crΓ©er un tunnel https pour c

Mar 29, 2022

Unified-myst is a monorepo containing packages for using MyST

Unified-myst is a monorepo containing packages for using MyST

unified-myst (IN-DEVELOPMENT) unified-myst is a monorepo containing packages for using MyST (Markedly Structured Text), within the unified ecosystem.

Apr 14, 2022

A little CLI for making TypeScript packages, cleanly and effortlessly.

TSEX A little CLI for making TypeScript packages, cleanly and effortlessly. Install npm install -g tsex Usage Usage: tsex [options] [command] A littl

Nov 15, 2022

Get packages from a monorepo (pnpm, yarn, npm, lerna)

πŸ’› You can help the author become a full-time open-source maintainer by sponsoring him on GitHub. @egoist/get-packages Get packages from a monorepo (p

Jun 1, 2022

πŸͺ΅ Aggressively find a packages changelog (or releases) between versions.

πŸͺ΅ changelogd Aggressively find a packages changelog (or releases) between versions. Status: Early Access Please report any issues πŸ› Made possible by

May 10, 2022

Modren is a modern store for Linux. It includes support for snaps, flatpaks from Flathub, APT packages and DEBs.

 Modren is a modern store for Linux. It includes support for snaps, flatpaks from Flathub, APT packages and DEBs.

v1.0.0 Made with ❀️ for 🐧 Modren is a modern store for Linux. It includes support for snaps, flatpaks from Flathub, APT packages and DEBs. Download ·

Nov 18, 2022

Recursively publish ESM packages as CommonJS!

Commonify.js For us who are still relying on CommonJS, or using Electron which does not support ESM. πŸ†• See also build-electron I made this tool that

Dec 29, 2022
Comments
  • Console.log

    Console.log

    https://github.com/NathanCotrim/NodeJS-API/blob/0d04723ee66b4a1e0acfa1d2c14a84f3ddb3674a/src/services/createUserService.js#L40

    Pude ver que aqui escapou um console.log :)

    opened by ctargino 1
Owner
Nathan Cotrim Lemos
In progress...
Nathan Cotrim Lemos
Examples and challenges of my video about Creating and testing a complete Node.js Rest API (Without frameworks)

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 N

Erick Wendel 120 Dec 23, 2022
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
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

Francesco Orsi 28 Dec 29, 2022
Simple NodeJS API without express, for learning purposes

Vanilla NodeJS API Simple NodeJS API without express, for learning purposes. I have been building RESTful APIs in NodeJS with the help of Express and

Phillippe Santana 55 Nov 2, 2022
A totally functional user api. It's a service where you list users, create users, update or even delete them.

USER-API ?? ABOUT A user api system made with TypeScript using express and prisma. It's a service where you list user, create users, update them or ev

Luiz Sanches 4 Oct 27, 2022
Demonstration of how you build full-stack, typed, NPM packages, the right way

NPM Packages - The Right way This repository aims to demonstrate how to build NPM packages the right way. my-package should import the shared code, bu

VulcanJS 61 Nov 27, 2022
Detect npm packages by author name in your package-lock.json or yarn.lock.

detect-package-by-author Detect npm packages by author name in your package-lock.json or yarn.lock. Install Install with npm: # Not Yet Publish # npm

azu 2 Jan 11, 2022
A set of javascript packages that generates fake data for you.

Faker A set of javascript packages that generates fake data for you. Install $ npm install --save @fakerjs/faker Usage import faker from '@fakerjs/fa

The New Faker for JavaScript 33 Apr 18, 2022