Create a button on the test page or fun stuff page, not decided yet. Where once the button is pressed, a text chosen on random is generate into a text box. Content of text is yet to be decided, maybe dad jokes or some motivational quotes. The text is to be stored on the server-side of the project and then delivered to the client-side.
[x] Create a module named randomTextButton.js or randomTextModule.js file which will contain functionality for clicking the button
[x] Create a .txt file containing random quotes
[x] Create a server API endpoint to handle the API request, read the random texts from the .txt file. Use fs module to read the .txt file.
Create a button on the test page or fun stuff page, not decided yet. Where once the button is pressed, a text chosen on random is generate into a text box. Content of text is yet to be decided, maybe dad jokes or some motivational quotes. The text is to be stored on the server-side of the project and then delivered to the client-side.