Instead of using a real database, discover how to create a mock service that can then be integrated with any database or ORM of your choice. In this video, keep your focus on what matters the most, React and Web API.
- [Instructor] To work with data … we are going to create a service. … And after we create the service, we are going to inject … the service so we are able to use it. … So, let's go to Visual code and see this in action. … In here go inside the data folder and create a new folder. … We are going to name this folder services. … Then next, let us create our service interface. … This is going to be named I Trip Service dot cs. … Let us know define the namespace. … So the namespace is going to be namespace trips dot data. … Now write public interface, I Trip Service. … In here we are going to define … all the methods that going to use. … First of all we need a method … that we are going to use to get a list of all trips. … So for that we write in here, a list of trip … is going to be the response. … And the name is going to be Get All Trips. … Let's import the list namespace, … which is the system dot collections dot generic. … And now let's create another method, … we need to also get a single trip. …
- Setting up the app infrastructure
- Creating data models
- Creating, reading, updating, and deleting API endpoints
- Testing API endpoints using Postman
- Reading data from React
- Adding new data from React
- Handling errors
- Implementing Redux in an existing React app
- Implementing authentication in your React app
Skill Level Intermediate
Managing App Secrets in .NET Corewith Ervis Trupja28m 15s Intermediate
1. Setting Up the App Infrastructure
2. Setting Up Web API
3. Getting Started with React
4. Implementing Redux to an Existing React App
5. Implementing Authentication in Your React App
Where to go next44s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.