Ascii-art-web consists in creating and running a server, in which it will be possible to use a web GUI (graphical user interface) version of your last project, ascii-art.
Your webpage must allow the use of the different banners:
Implement the following HTTP endpoints:
GET /
: Sends HTML response, the main page.
1.1. GET Tip: go templates to receive and display data from the server.
POST /ascii-art
: that sends data (text and specified banner) to the Go server.
2.1. POST Tip: use form and other types of tags to make the post request.
The way you display the result from the POST is up to you. What we recommend are one of the following :
/ascii-art
after the POST is completed. So going from the home page to another page.The main page must have:
Your endpoints must return appropriate HTTP status codes.
In the root project directory create a README.MD
file with the following sections and contents: