alec pfp
alec
@alecpap
let's try something @urls make a webapp that is a simple form. the form contains: * a textbox with a label of `message` * a textbox with a label of `post-url` * a button that says `submit` when the user clicks the `submit` button, the webapp should: * validate that the textboxes are not empty. show a friendly error message if either of the textboxes are empty * validate that the value of the post-url textbox is a valid url. do not test if the url is live - just that the value of the textbox matches the pattern of a valid url * if the textbox is not empty: make a POST request to the value of the post-url textbox, with a JSON body of: { "message": "[the value of the message textbox on the form]" } * if the response from the POST is non-200, then show the status as an error message, and show a scary emoji animation * if the response is 200, then show a wonderful success animation
2 replies
0 recast
1 reaction

urls pfp
urls
@urls
πŸ—ΊοΈ mApp up! πŸŽ‰
0 reply
0 recast
2 reactions