Building ApplicationsLesson 46Free preview
Node.js with Frontend
This lesson is part of Node.js · All levels
Summary
Node.js is generally a backend that serves JSON data, while the frontend builds interfaces with HTML, CSS, and frameworks such as React or Vue. When developed, the two often run on different ports and then connect via CORS. In production, the build frontend results are usually presented directly by Express or via reverse proxy.
Key points
- Frontend handles the display, Node handles the data and server logic
- When dev, frontend and backend often run on separate ports
- CORS needs to be configured so that the browser allows cross-origin requests
- Build static frontend can be presented with
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.