How the Internet works
Read Mozilla’s great introduction to how the Internet works.
Also, check out this animated guide to how the internet works.
- HTTP Basics, a thorough primer on HTTP.
- What’s a web server? This will tell you.
- Understanding status codes with Status Cats: every HTTP request has a response that is accompanied by a status code like
500 Internal Server Error, and these lovely felines can help you remember them.
- In order to understand how servers work, build a simple server script with Ruby.
- Understanding what JSON is.
- Understanding HTTP methods
- Understanding what APIs are.
- Understanding the AJAX request.
- AJAX documentation.
- Connect a front-end application with a separately-hosted back-end application: this keeps your concerns separate. The alternative is building HTML views with your back-end application or trying to integrate a front-end application onto a back-end application, and it can easily turn into spaghetti code. Here’s an example of the separated elements: building an Angular2 / Rails 5 website and deploying to Heroku, where the front-end is separated out from the back-end. Oh, and if you’re not convinced, read this article on why client-side rendering is a good idea. (That means when HTML pages are generated by client computers, rather than created in a back-end app and sent forward to the client.)
- Understanding PUT vs PATCH vs POST requests: “POST != Create and PUT != Update”