Skip to content

leandrolimadeveloper/api-node-without-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PURE NODE.JS API (WITHOUT FRAMEWORK)

Node.js Version License

📋 About

User API built using Node.js without any framework, focused on exploring how Node works under the hood and how core HTTP concepts are implemented from scratch.

The API supports creating, updating, deleting, and retrieving users with basic filtering. The repository also includes experiments with Node.js Streams to explore performance and data handling.

🌐 Technologies

  • JavaScript
  • Node.js (v. 18)

🚀 Installation and usage

To run the project locally, get a clone of it and access its directory, then execute:

$ npm run dev

Make sure you are using Node version 18, to execute the server in watch mode.

The server will start on TCP port 3333.

For testing, you can use an API client like Insomnia.

Endpoints

Retrieve users with or without query parameters

GET /users
GET /users?name=nameExample&email=email-example@email.com

Create a user via body request

POST /users
{
        "name": "Leandro",
        "email": "leandro@email.com"
}


Update a user via route paramaters and body request

PUT /users/id

{
        "name": "Camila",
}

Delete a user via route paramaters

DELETE /users/id

📃 License

Project under MIT license.



This project was developed as part of a Node.js learning track.

About

Pure Node.js API (without framework)

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Contributors