Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Prodigy Internship – Task 01: REST API with CRUD Operations πŸ’‘ Project Overview

As part of my ProDigy Internship, I developed a RESTful API for managing a users resource using Node.js and Express.js. This project focuses on backend fundamentals, clean design, and proper data handling.

Each user includes the following properties:

id: Unique UUID

name: User’s full name

email: User’s email (validated)

age: Positive integer

The API uses an in-memory storage (Map()) for fast, simple data management and includes robust input validation and error handling.

✨ Key Features

βœ… Full CRUD functionality (Create, Read, Update, Delete)

βœ… Input validation: Email format & positive age numbers

βœ… Proper HTTP status codes: 201, 400, 404

βœ… Clean, modular Express.js routing

βœ… In-memory storage with Map() for simplicity & speed

πŸ›  Endpoints Overview Method Endpoint Description POST /users Create a new user GET /users Get all users GET /users/:id Get user by ID PUT /users/:id Update user details DELETE /users/:id Delete a user GET / Welcome message ⚑ Example Requests

Create a new user

POST /users { "name": "Deepika", "email": "deepika@example.com", "age": 22 }

Get all users

GET /users

Update a user

PUT /users/:id { "name": "Deepika S", "email": "deepika.s@example.com", "age": 23 }

Delete a user

DELETE /users/:id

πŸ›  Technologies & Tools

Node.js – Server-side JavaScript runtime

Express.js – Minimalist web framework for APIs

UUID – Unique identifier for users

Validator.js – Email validation

Map() – In-memory storage for fast operations

πŸš€ Skills & Learnings

REST API design & implementation

Input validation & proper error handling

HTTP status code best practices

Modular and maintainable Express.js architecture

πŸ‘©β€πŸ’» Author

Deepika S. – Prodigy Internship Participant

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages