Posts

Showing posts with the label webserver

MVC Architechture

Image
Understanding MVC Architecture The Ruby On Rails Framework   uses an MVC Architecture.   It's a fundamental part of how the framework is structured   and it is designed to help us not repeat ourselves.   MVC is a fundamental aspect of rails,   which is important to understand right from the start.   M, V, and C.   The 'M' stand for  Model ,   the 'V' stands for  View ,   and the 'C' stands for  Controller .   The Model refers to the data objects that we use.  It's the object-oriented approach to design. Many things can be objects in our models   but the data in our Database   will be the most common type of object   that we'll put there.   The View is the presentation layer .   It's what the user sees and interacts with.   The web pages, the HTML, the CSS, the JavaScript.   The  Controller processes and response   to user events .   Such as clicking on links and...

Web server & IDE for ruby on rails

Ruby on Rails - Web server & IDE Greetings of the day!!! Web Servers Let's talk about what web server that we're going to use for this blog. Of course, you need a web server to serve requests to users. Ruby on Rails doesn't do that on its own, so you need something that's going to take a request from a user, when they type in a URL, it's going to send it to our Rails application, your Rails application will then return a result to the web server, which then gets sent back to the user. A web server is an essential part of this process, and we have a few different options. If you're using a production web server, then you're probably using either Apache or NGINX . Those are two of the most popular web servers for the front end, and they're very robust web servers with a lot of features built in. They can handle a lot of requests. It's also very common for people to use some lightweight web servers, which pair nicely with these other heavyw...