This is the code that I've developed following the course. I've made some changes in the original one.
Download the jar file from http://bit.ly/jar-api-curso-react.
Now, in case your MySQL server doesn't have a password, you can just run:
java -jar jar-cdc-react.jarIn case your MySQL server has a password, run it the following way:
java -Dspring.datasource.password=myPassword -jar jar-cdc-react.jar- Understanding what we are going to build during the course
- Configuring the environment and create-react-app
- Our first page
- Why do we use JSX and Babel?
- Where does Webpack come in?
- Importing CSS
- Defining HTML
- Implementation of the base layout
- Maintaining the state of the component
- Updating Component Status
- Understanding a little more about the details of React
- Setting up the environment for running the API locally
- Implementing dynamic listing
- Synthetic events
- Keeping the state of form fields
- Updating the listing based on the form
- Reuse of components and parameterization
- Extracting the enrollment components for specific classes
- High Order Components
- Publish / Subscriber to Decrease Coupling
- Dealing with API validation errors
- Router Configuration
- Navigating with the History API
- Daughter Routes and IndexRoute
- Implementation of the book registry
- Selecting the author
- Spread operator
- Simplifying the form
- Build and deploy demo
- Analyzing what was generated for us by create-react-app
Download the jar file from https://github.com/alberto-alura/instalura-api/raw/master/instalura.jar.
Now, in case your MySQL server doesn't have a password, you can just run:
java -jar instalura.jarIn case your MySQL server has a password, run it the following way:
java -Dspring.datasource.password=myPassword -jar instalura.jarThen access the following address to populate the database: http://localhost:8080/gera/dados
- Importing html, css and images
- Discovering the components of our application
- Using the Fetch API
- Dealing with Promises
- Using parameters on the route
- onEnter to check conditions before entering route
- JWT to traffic the user's token
- Having attributes that are not part of the component state
- componentWillReceiveProps and one more way to handle state change in component
- Implementation of like and comment features
- Presentational and Container components
- Separating application logics into lighter layers
- Pattern Flux to make clear the path of data within our application
- Redux as Flux implementation
- redux-thunk for asynchronous actions
- Bringing immutability to the project
- Isolating action creation with Action Creators
- Combining various reducing functions
- Using the connect function to generate container components
- Using the component provider to make the store available to everyone
- A little bit of Electrode
- Universal Javascript
- One store for each new request