DEV Community

ggebre
ggebre

Posted on

Citizenship test app

As my fourth project as a student at Flatiron, I was required to develop a javascript project with rails as backend. In the project, I had to use javascript to design the front-end while rails api as the back-end.

When I applied for my naturalization in the US, I had to study and practice about 100 civic questions. There were a lot of resources on the internet that helps aspiring citizens to practice these questions. However, the resources that I researched did not include the answers to some of the questions that are specific to a state and district that the aspiring citizen will be asked. The answers to these questions are dependent upon where the aspiring citizen will be taking the naturalization test. Thus, I designed a web application to included these answers.

I the web application, the user is first asked to select the state and district in which the user resides.
Alt Text
Once these two informations are provided, the user will be directed to a page where a quiz of ten questions are rendered. The user interacts with these question by matching one column of questions with the column of answers. In addition, they will be able to leave their comments on the page or give a thumps up or down.

Alt Text
The other feature of the application is the presentation of question and answers in the form of flash cards for the user to study these questions. This page renders the each question and when the question is clicked, the card flips to show its answers. By clicking on the previous and next buttons, the user can study all the questions.
Alt Text

Top comments (1)

Collapse
 
paultrium profile image
Paultrium • Edited

I have been dreaming of moving to the U.S. for several years now and getting second citizenship or residency Global CitiZen. Right now I am trying to get a mortgage on a house in Philadelphia, and I hope very much for a positive response. If so, I will be able to get my citizenship through buying real estate here in America. What do you think about that? Is it possible? What resources do you use to do it?