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