This repository provides HTML file for front end that takes input from user. This HTML file is embedded with JavaScript. The Javascript code listens for the form submission event and makes a GET request to the server. This server is created using Java and hosted locally and listens on port 8080.
Prerequsites:
- Use java 11 or later version to run this code. I tried running the same code in java 8 but facing some errors(will try to fix it later). So better to use java 11 or later for now.
To run this. Follow below steps:
- Download 'index.html' file and 'TextEncoderHttpServer.java' files.
- Compile the java code using the command: javac TextEncoderHttpServer.java
- Run the java code using the command: java TextEncoderHttpServer
- Now the server starts at 'http://localhost:8080'
- Now double click on the index.html file.
- Give some text in 'Text to Encode' text box.
- Click on 'Encode' button.