GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - than-dev/raw-nodejs-api: An users NodeJS API without packages libs or frameworks!

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
src
src
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Project logo

NodeJS Users API - Without Frameworks And Packages

License


📝 Table of Contents

  • About
  • Getting Started
  • Usage
  • Built Using
  • Authors

🧐 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



To request any route without an app use:

curl ${url} -X ${method}

⛏️ Built Using

  • NodeJs - Server Environment

✍️ Author - Nathan Cotrim - MIT License

About

An users NodeJS API without packages libs or frameworks!

Topics

apijavascriptnodenodejsv8

Resources

Readme
MIT license
Activity

Stars

29 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.