- Export env file
- Install MongoDB
- Install Node Js
- Run following commands
npm install
node index
curl -XGET 'localhost:8900/?email=sample@example.com'
curl -XPOST -H "Content-type: application/json" -d '{
"name": "Test User",
"email": "sample@example.com",
"phone": "9999999999"
}' 'localhost:8900/'
curl -XGET 'localhost:8900/aggregate?email=sample@example.com'
npm i auto autocannon
autocannon -c 100 -d 5 http://localhost:8900/?email=sample@example.com
- Remove getters and setters from users model to disable encryption
- Add the getters and setters back to enable encryption