Ask your mentor for a dump of the staging target — trainees have no server access — and load it into your local database. In the makandra cards app, load an...
...APIs versus "asynchronous" APIs? Why does fetch() not simply return the response from the server? Why is asynchronous code such a big issue in JavaScript (as opposed to the code...
You can either implement your own API backend or use the free service at api.random.org. If you chose the the latter, create an account for it and click...
Many features need data from third-party services. In this lesson you integrate geocoding, maps and a title-autocomplete API from JavaScript, and learn to test code that talks to...
...external services. Important Work on this lesson in builder mode. Learning goals You can explain what is involved when a browser talks to a third-party service: API keys, CORS...
...can explain what the DOM is and how it relates to the HTML the server sent. You can select elements by CSS selector, on the whole document or within a...
...and application logos next to the dynamically created images versions of uploaded files. To serve all of those with limited bandwidth and high quality, images formats and compression strategies have...
You can explain how JavaScript in the browser differs from Ruby on the server: it runs on the user's machine, has no implicit return, needs parentheses to call...
When you add or change an initializer you need to restart your Rails server or console for the changes to be picked up. Only changes in app are picked...
...explain in one or two sentences why this is dangerous in a long-running server process, and when this cache would ever be emptied...
...know from Rails? Practice Checkout the repo for the makandra blog Start the preview server Make some changes, review them on localhost:4567 Add a new page /animals/your-favorite-animal that has...
...how to add Stylesheets how to add images how to use the Webpack dev server One more thing about Yarn / npm There is one significant difference between JavaScript package managers...
Rails is our web framework. In this lesson you build your first two Rails applications: a small store by following...
Best results in other decks
...a new connection end end These three connections will remain connected to the database server after the threads terminate. This only affects threads that use ActiveRecord. You can rely on...
...outlined below. This may cause your application to open more connections than your database server allows. If you don't want to risk that, you can also manually release connections...
When your Rails application server raises error, Capybara will fail your test when it clears the session after the last step. The effect is a test that passes all steps...
%r{No route matches .*"/uploads/test/\d+-[\d\-]+/[^"]+"}i, ].freeze def raise_server_error! super rescue StandardError => e # Ignore errors about missing source maps unless IGNORE_MESSAGES.any? { |ignore_message...