Node.js โข Express โข Postman ๐งช
A lightweight authentication API built using Node.js and Express, featuring ๐ Signup and ๐ Signin endpoints. This project of mine demonstrates API handling, request/response validation, and โก in-memory user storage. All endpoints are tested using Postman ๐งช, making it ideal for interviews or beginners learning backend basics.
- ๐ User Signup
- ๐ User Signin
- ๐ง In-memory user storage (no database)
- ๐ฎ Proper request/response handling
- ๐งช Postman tested
- โ Basic validation included
- Node.js
- Express.js
- Postman (for API testing)
# Clone the repo
git clone https://github.com/your-username/your-repo.git
# Navigate into the project
cd your-repo
# Install dependencies
npm install
# Start the server
node index.jsCreate a new user.
Request Body
{
"username": "yourname",
"password": "yourpassword"
}Responses
201โ User created successfully400โ Username already exists / invalid input
Authenticate an existing user.
Request Body
{
"username": "yourname",
"password": "yourpassword"
}Responses
200โ Signin successful401โ Invalid username or password
- Open Postman
- Create POST requests for
/signupand/signin - Send JSON request bodies
- Verify responses & status codes
You can import the Postman collection that I made to test the API endpoints:
File:
postman\Webhibe Assignment.postman_collection.json
It contains:
- POST /signup
- POST /signin
This project is open-source under the BSD 2-Clause License.
Krittika Biswas Made as an assignment for Webhibe




