In this video, Emmanuel Henri updates the server code to be able to handle the GraphQL server and the proper ports where they run.
- [Instructor] Now that we have all of our dependencies…to work with Relay,…we need to update our server code to be able to…both start our GraphQL and Relay React application.…And we'll use Webpack to help us achieve this.…Let's get to it.…So, go into your server.js file,…and at the top let's import a few things.…So the first thing I want to import is path from path.…Then I want to start importing webpack…so we can use it in this file.…
From webpack.…Then I want to import WebPackDevServer…from webpack-dev-server.…Let me correct that little typo here.…Webpack, wepback.…There you go.…And I want to also import the schema…that we'll create soon…from our…data database.…
And we'll create this in a future video.…And you can always put a note.…Keep looking for this.…And by the way,…this is always a good practice.…When you are coding things for later…or when you're coding things that you want to keep notes.…Always comment on your code.…Always always always comment.…This is good practice and it's going to help you.…I probably don't do it enough while I teach you.…
- Setting up GraphQL
- Running queries
- Updating schema and solvers
- Adding data
- Adding Relay entry components
- Coding GraphQL fragments
Skill Level Advanced
Node.js: Build Your First Microservice (2016)with Daniel Khan2h 9m Intermediate
1. Introduction and Setup
2. GraphQL Development
3. Relay Setup
4. React Integration
Next steps1m 12s
- 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.