My single-page application (SPA) project was pretty challenging. Coming into a new language is intimidating to say the least, but to see it come to life after all the stress coking into it is refreshing. One thing I didn’t expect was to love front-end development as much as I did with this project, can’t wait to do more and see how far I can take it.
A Single-Page Application (SPA) is a web application or website that interacts with the user by dynamically rewriting the current web page with new data from the web server, instead of the default method of a web browser loading entire new pages. The goal is faster transitions that make the website feel more like a native app.
In a SPA, all necessary HTML, JavaScript, and CSS code is either retrieved by the browser with a single page load,[1] or the appropriate resources are dynamically loaded and added to the page as necessary, usually in response to user actions. The page does not reload at any point in the process, nor does it transfer control to another page, although the location hash or the HTML5 History API can be used to provide the perception and navigability of separate logical pages in the application.
I also used Rails as my backend to create my API. API stands for Application Programming Interface. An API is a software intermediary that allows two applications to talk to each other. In other words, an API is the messenger that delivers your request to the provider that you’re requesting it from and then delivers the response back to you.
An API defines functionalities that are independent of their respective implementations, which allows those implementations and definitions to vary without compromising each other. Therefore, a good API makes it easier to develop a program by providing the building blocks.
This project was pretty exciting to get into the grind of frontend work. Getting use to JS, HTML, and CSS is great. JS is so open it allows to do one thing so many different ways I enjoy that sort of flexibility. I can’t wait for the next project.