All the things we should install are finish. Now we can develop a web page and connect to the REST Server. There are 2 versions of the application (one of them developed with jQuery framework and the other one developed with React framework) and they will be explained separately. The source code is available here;
The result is shown whenever any candidate is selected as a vote as you see below;
Here is the jQuery Code;
The result is shown below. Users can sign into the system and select which candidate they want. Creating a new candidate or deleting an existing candidate are exist in the Candidate tab. Since the user needs to login system, Candidate and Vote tabs redirect to Login screen if the user doesn’t authenticate to the system.
In this project, the
vote-react directory is where all React codes and files are placed in and it is available here;