Keep-Pwd is a node.js API where you can store all your passwords in one place.
Simply run the following command.
yarn install
Create your .ENV file on the root directory, and populates with your information.
// DB
MONGO_USER =
MONGO_PASSWORD =
// Server PORT
PORT =
// Secret KEY
KEY =
yarn start
curl -X POST \
https://localhost:3000/api/v1.2/addPassword \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"title": "Google",
"description": "Google Password",
"password": "Password12#"
}'
curl -X GET \
https://localhost:3000/api/v1.2/passwords \
-H 'cache-control: no-cache' \
curl -X GET \
https://localhost:3000/api/v1.2/password/5fbf8982ad78a648dcec59c5 \
-H 'cache-control: no-cache' \
curl -X PATCH \
https://localhost:3000/api/v1.2/updatePassword/5fbf8982ad78a648dcec59c5 \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"title": "Updated",
"description": "Updated",
"password": "Updated123"
}'
curl -X DELETE \
https://localhost:3000/api/v1.2/deletePassword/5fbf8982ad78a648dcec59c5 \
-H 'cache-control: no-cache' \
curl -X POST \
https://localhost:3000/api/v1.2/register \
-H 'cache-control: no-cache' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'postman-token: 217ae210-714c-6635-0b3a-95f076136bab' \
-d 'name=username&email=email%40gmail.com&password=Password123&confirmPassword=Password123'
curl -X POST \
https://localhost:3000/api/v1.2/login \
-H 'cache-control: no-cache' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'postman-token: 438632af-30b5-fc5a-5de6-d8c32069715f' \
-d 'email=email%40gmail.com&password=Password123'
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.