…with a Laravel back-end. In the first part of the series, we created a RESTful API using Laravel for a basic product-listing application. In this tutorial, we will be developing the front end using React. We will also consider all the available options to bridge the gap between Laravel and…
…with a feed (it will contain a title and a description), and once its value is changed in the database, the API will send the updated value to our front-end application.Bootstrap the AppLet's first bootstrap the Phoenix application.mix phoenix.new realtime_feed_api --no-html --no-brunchThis will create a bare-bones Phoenix application inside a…
…without the command line (especially as a developer). These include installing CocoaPods, using a git repository, and more. You can easily make changes to your computer's settings which would be tedious or even impossible to do using the user interface only. The terminal is very flexible, and once you learn…
…with React introduced different approaches, and tools, to set up a working app. Even with subtle differences between suggested build methods, confusion was inevitable.To be able to successfully set up a React app via manual configuration requires a good understanding of multiple different technologies.This flexibility in setup is actually a…
…with some simple components to see how React works. You really don't want to have to wade through a lengthy setup process in the first instance.In this tutorial I'll show you how to begin coding with React in seconds, almost completely removing the setup process! You'll be using CodePen, an…
…With a server-side MVC pattern, it's similar to other web frameworks like Ruby on Rails or the Python framework Django, but it also contains powerful new ideas to make web development easier and more effective.Our new course, Get Started With Phoenix, is the perfect introduction to this exciting framework. In…
…with the <App /> component only:const App = function () { return React.createElement( 'div', null, React.createElement( 'h2', null, 'My First React Components!' ) ); } ReactDOM.render( React.createElement( App ), document.querySelector( '#app' ) );This is what a React component looks like without JSX. In fact, this is what the JSX code…
…with this issue tremendously as it allows anyone to create a full working React app without requiring any knowledge of how to configure the build tools. The reality is that create-react-app will be fine for most apps, especially if you're new to React.As you gain more experience with React, you…
…without having to navigate through a complicated setup process.To use create-react-app, you'll need to have Node.js and npm installed. You can check if they're both available by typing the following in a command-line window:node -vAnd then:npm -vIf they're both installed then you'll see the current version number for each.MacBook-Pro:~ davidgwyer$…
…with adding our first custom component to display individual movie cards. We'll also see how using props allows us to customize the appearance of components by passing in data rather than hard coding it.This demonstrates the flexibility and reusability of components, and how they can be used as powerful building…