Secure your Express app with rock-solid authentication! Learn to use password hashing and JWTs for user authentication.
You can follow this tutorial and understand how this project work on this medium link.
npm install
npm start
Create a new user.
{
"name": "John Doe",
"email": "johndoe@example.com",
"password": "password123"
}
{
"id": 1,
"name": "John Doe",
"email": "johndoe@example.com"
}
Get a list of all users.
[
{
"id": 1,
"name": "John Doe",
"email": "johndoe@example.com"
},
{
"id": 2,
"name": "Jane Smith",
"email": "janesmith@example.com"
}
]
Get one user by id.
{
"id": 1,
"name": "John Doe",
"email": "johndoe@example.com"
}