To use the microservice, install the dependencies, Express, MongoDB, CORS, and Mongoose. Set up the database on MongodB for the microservice and copy and paste the generated connect string to the app.js file, line 12. To start the microservice, type "nodemon app.js". If the microservice has connected successfuly, a message should be printed to the terminal.
In order to request data, the user must fetch the api where the password is being generated. This is done in lines 9 through 32 in the index.html file. This file uses the fetch api to grab the generated password which was created in the app.js file.
In order to receive the data, the user will click the generate button at the local host. After clicking the button, a password should be generated.
![Screenshot 2024-05-20 at 4 12 14 PM](https://private-user-images.githubusercontent.com/111149954/332229146-6d7eaf65-e8c0-468d-b57c-d35565afe99a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NjYwNjksIm5iZiI6MTczODg2NTc2OSwicGF0aCI6Ii8xMTExNDk5NTQvMzMyMjI5MTQ2LTZkN2VhZjY1LWU4YzAtNDY4ZC1iNTdjLWQzNTU2NWFmZTk5YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQxODE2MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZWJmNDZhYjJhY2M0OThkYjlmYWQyOGQ3YTJkZDc3NTNmMjA1YjIwMzg0NDQ0NGJkNjUzMzc3YTRlYjRhYmVlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.plIrEO1RgvHr_qiRqauepDXj1fUGA8Ea8kgy1k_OvTE)